Blog

Did you know that it is possible to access and edit your Salesforce data when you are offline?
Although we are surrounded by internet connectivity most of the time, we are constantly on-the-go and having access to important data, even without internet access, is a great advantage.

So how does offline view and edit access actually work? Offline access is possible when caching and Offline Edit is enabled for users. When a user initially logs into Salesforce, the cache is empty as no records have been accessed yet from the app. However, the most recently accessed records can be populated into the cache by navigating to Settings>Offline Cache>Cache Now.

    
The Cache includes records from the five most recently accessed objects and recent activity and dashboard from both the Salesforce1 app and Salesforce.com website. There are 2 ways the cache is updated; either manually or automatically. It automatically refreshes after each hour so that the user’s most recently accessed records are viewable. It can also be manually refreshed by the user himself anytime he wants to update the cache by clicking on the Cache Now button. The following screenshot shows the five most recently accessed objects in the navigation menu which allows them to be accessed offline:

The following screenshot shows the account’s record “Acme” is present in the cache which was recently accessed from Salesforce.com online and is now being viewed offline via Salesforce1.

The following screenshot shows the Contact’s record present in the cache which was recently accessed from Salesforce.com online and is now being viewed offline via Salesforce1.

The following screenshot shows the Leads’ records present in the cache which was recently accessed from Salesforce.com online and is now being viewed offline via Salesforce1.

The following screenshot shows the Opportunities records present in the cache which was recently accessed from Salesforce.com online and is now being viewed offline via Salesforce1.

The record will stay in the Cache for 30 days until it is accessed again upon which the clock will reset; otherwise, it will be removed from the cache after 30 days. The cache remains if the user is logged in and will be emptied if the user logs out. When he logs in again, the whole caching process will start again. The following screenshot shows the time for the last cached data under Offline cache.

The following lists the Salesforce Elements that can be viewed offline:

  • Navigation Menu
  • Action bar
  • Global Search
  • List Views
  • Record for recent objects
  • Records for Other Objects
  • Related Records
  • Salesforce Today
  • Salesforce Events
  • Tasks
  • Notes
  • Files
  • Feeds,Groups and People
  • Notifications
  • Salesforce1 Settings

 

Changes to records while Offline with Caching enabled

A remarkable new feature for Salesforce1 is that it allows changes to records like Offline Edit, Offline Create, and Offline Delete. This option is however only possible with caching enabled and will not work if you disable caching. The option for editing, deleting, and creating needs to be enabled by Salesforce. Once this option is enabled, the user can create records, edit, or delete them for the available cached objects. Thus, online connectivity is not required to make changes to the platform, hence making it easy to complete tasks on-the-go. Once the user is online and connected to a network, the Salesforce1 app will automatically synchronize the new data with the platform. In case of a conflict with the original data, Salesforce will throw an exception allowing users to rectify the changes.

Offline File Settings can be changed by going to Settings>Offline File Settings and selecting Auto-Sync Offline Files (when connected to Wi-Fi). When this checkbox is selected, changes will be auto-synced.

There are two kinds of Offline Access; one is just viewing and the second is being able to edit, create, and delete records with Offline Edit enabled. To enable this option for modification in Salesforce, go to Setup>Enable Caching and then Setup> Enable Offline Edit, Create and Delete in Salesforce1(Beta) and then select Save.

Once this option is enabled, go to any of the cached objects homepage. To create a NEW Record, press the New button on the top of the homepage. The following screenshot shows the New record for account being created. Once the information is entered, press Save to save the record. The new record will be synced with the Salesforce.com platform once the user goes online.

To Edit the record, go to the records detail page and press the Edit button in the action bar at the bottom of the page.

  

Once again, any changes made will be updated to the system once the user goes online.

The record can also be Deleted by pressing the delete button in the action bar on the bottom of the records detail page.

All the changes made can be viewed by selecting the Pending Changes button in the navigation menu. The page that opens will list the changes made when offline. When all changes have been updated, the screen shows the following note “You’re up to date. There are no pending changes.”

    

The bell-shaped icon on the top right bar of the Pending Changes page displays any pending Notifications the user must address.

A green indicator on the Pending Changes page will indicate that changes have been made that need to be updated in the system when the user goes online. A yellow indicator signals issues in the new data that must be addressed once the user is online. A red indicator signals an unresolvable issue, and the updates cannot be made when the user goes online. The issue can be due to validation errors if a validation rule exists that prevent the change. It can also be due to user permissions if the user who made the change did not have the required permissions. To resolve the issues, the user will be notified via a popup alert or in the Pending Changes page. If there are no issues, the changes will be synced perfectly and completely with the system.

The following demonstrates when an account is created in Offline mode and Saved. The homepage for the object displays the message “You have records that are pending sync” next to a green indicator.

   
 

The Pending Changes Tab in Settings in the Navigation menu displays (1) i.e. the number of changes to be synced once the user is online.

The following example shows an opportunity field Amount being edited to 7,899.00:

Once it is saved, the opportunity detail page displays the green indicator indicating changes need to be synced.

Once the user goes online, the system tries to sync the record updated, but as show,n the record was edited online on salesforce.com, and there is a conflict. The yellow indicator indicates this conflict and messages are displayed: “Pending Changes require your attention” and “There were issues matching the field values you entered. Choose the correct values to resolve”.

    
Once the correct value is selected, the opportunity saves successfully.

For Android users, it requires version 10.0 of the Salesforce1 app, and for the iOS, the Salesforce1 downloadable app.

What Certification are you studying for now?

Focus on Force currently provides practice exams and study guides for sixteen certifications

Offline access to your Salesforce data

Did you know that it is possible to access and edit your Salesforce data when you are offline? Although we are surrounded by internet connectivity most of the time, we are constantly on-the-go and having access to important data, even without internet access, is a great advantage. So how does offline view and edit access actually work? Offline access is possible when caching and Offline Edit is enabled for users…. Read More

Offline access to your Salesforce data

Focus on People: Jordan Elkin

Jordan Elkin is a Technical Consultant. He always knew that Technology Consulting was going to be his field, but he was on the look out for how to get started. Soon enough, he learned of the existence of Salesforce, and wanting to get to know it, watched some of the online sessions from Dreamforce 2015. He developed his Salesforce skills over the next few months, received his certifications, and now works… Read More

Focus on People: Jordan Elkin

Delivering successful Salesforce projects using Agile

Aymeric Zito is the CEO of ProQuest Consulting. In this article, he discusses how ProQuest have been so successful using the Agile project methodology to deliver Salesforce projects. Before we learn more about how Proquest uses Agile, can you tell us about your background and how you got started with Salesforce? My background is in neuroscience and software engineering. I started my career programming enterprise web applications in Java J2E and moved… Read More

Delivering successful Salesforce projects using Agile

Focus on People: Alex Bassett

Alex Bassett is a Salesforce Consultant based in Vancouver, Canada. Alex was originally working as a Data Reporting & Information Analyst, but upon learning about Salesforce and its opportunities, decided to begin his climb to get certified. After receiving his Certified Salesforce Administration designation in June 2016, he quickly found a job as a Salesforce Consultant. Learn about Alex’s Salesforce journey below. How and Why did you get started with Salesforce?… Read More

Focus on People: Alex Bassett

Apex Best Practices – Avoid Exceeding Governor Limits

Apex Code is the Force.com programming language used by developers to build custom business logic on the platform by writing Apex Triggers, custom VisualForce controllers and extensions, Anonymous Apex codes, etc. It runs in a multi-tenant environment where a single resource can be shared by all different Salesforce organisations or instances. In this case, it is crucial to ensure that no organisation would monopolise the resources. Salesforce.com enforced a set… Read More

Apex Best Practices – Avoid Exceeding Governor Limits

Salesforce Lead Process

Salesforce is a CRM or Customer Relationship Management tool and as such, its primary use is to manage the relationship between a business and their customers. Prior to consumers or businesses becoming customers, however they start out as potential leads. In this post are the basics of how to utilize Salesforce to track leads, convert them to deals and best practice around when to do so.All businesses are unique so… Read More

Salesforce Lead Process

Focus on People: Nick Liechty

Nick Liechty is a next-generation innovative Salesforce leader with a unique combination of technical expertise and enterprise experience across a variety of industries. Having architected and led dozens of clients through their journey into the Salesforce ecosystem, he is definately one of the leaders of the pack. Below he shares some of his experiences and tips with you: How and Why did you get started with Salesforce? I was doing… Read More

Focus on People: Nick Liechty

Extending Social Sign-On in Communities

By: Warren Mangahas With an ever-expanding number of social media platforms, the need for companies to accommodate third-party logins is increasingly paramount. Even if you have a fantastic Salesforce Community set up, full of valuable resources and a vibrant user-base, the idea of having to sign up on another site and memorize another password may just be enough to turn someone off from signing up. This is where Salesforce Social Sign-On… Read More

Extending Social Sign-On in Communities

Customizing a Flow User Interface

Flows are a very useful way for developers to create standardize business processes and perform actions in Salesforce, without writing any code. Some examples of where Flows can be useful include helping your Customer Service team provided consistent service across your organization by standardizing questions and scripts, or Flows can be used internally to help maintain data integrity. When you embed your Flow into your user’s UI, you will usually… Read More

Customizing a Flow User Interface

Focus on People: Nancy Johnson

Nancy Johnson is a high level Project Manager hailing from Sydney, Australia. Having focused on being a Project Manager and Business Analyst during her career, getting Salesforce certified was her next logical step. Nancy shares her Salesforce journey with us below. How and Why did you get started with Salesforce? I am a very experienced Project Manager and a friend asked me to be a Project Manager at her organization… Read More

Focus on People: Nancy Johnson

Top 5 Salesforce Business Analyst Skills

Salesforce Administrators are in the unique position of wearing numerous hats to maintain their instance. Depending on the number of licenses and integrations, people can find themselves in more of a business analyst or project manager position instead of working in just Salesforce. Quite a few admins are the sole system experts for their company so this can be very complicated when enhancements pop-up. The main problem is that just… Read More

Top 5 Salesforce Business Analyst Skills

Focus on People: Neal Lightfeldt

Neal Lightfeldt works as a Sales Excellence manager and in this post, shares his Salesforce journey with us. How and Why did you get started with Salesforce? Our parent company began a new initiative several years ago focused on applying OpEx principles to the front end of the business. Part of that initiative included implementing Salesforce. I already had experience implementing and administering our previous CRM system (SalesLogix), so I… Read More

Focus on People: Neal Lightfeldt

Salesforce Naming Conventions are not just for Devs

by Amanda Bailey In a previous post, we did a deep-dive into cleaning up Salesforce fields using a free resource called Field Trip. We discussed the importance of removing fields that are not used or updating them to be required. In today’s post, we will be taking cleanup a step further by discussing the importance of naming conventions. It isn’t the most glamorous of topics but an administrator who can… Read More

Salesforce Naming Conventions are not just for Devs