I have a requirement to cache some custom object data in Salesforce1 offline that will only be accessed in emergency situations (1-3x/year). From my understanding Offline mode only works for recently viewed items and the recently viewed items are only held for 90 days.

the question is: is there a way I can programmatically "trick" salesforce into making the items recently viewed for a group of users and that I can schedule this to run once every 90 days?

  • You could probably put some code on the home page which accesses them. Then they would always be "recently viewed". I haven't tried it so I'm not sure if it would work. – Adrian Larson Mar 14 '18 at 14:41
  • thanks, I gave that a go and it worked. It still requires the user to login to the app and cache the data under settings but they don't have to worry about whats under the "Recently viewed" items as the code took care of it – JPG Mar 14 '18 at 16:00

Include some code in your home page that accesses these records. Then they will be recently viewed for anyone who logs in.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.