Find your people. Pick a challenge. Ship something real. The CreatorCon Hackathon is coming to the Community Pavilion for one epic night. Every skill level, every role welcome. Join us on May 5th and learn more here.

OfflineFetchScript attribute

nataliya_b
Kilo Sage

Hello All

Has anyone used this attribute OfflineFetchScript for reference input (offlinemode) successfully?

 

I tried to set it like below:

OfflineFetchScript -> javascript: new global.myScriptInclude().getIds();

 

and this script returns string with sys_ids, comma separated, but it is not working offline. No users are available. 

 

Can you please help?

 

 

 

1 REPLY 1

Tanushree Maiti
Kilo Patron

As per doc : https://www.servicenow.com/docs/r/yokohama/mobile/reference-fields-offline-attributes.html

 

Try it in incognito/private browser once.

 

OfflineFetchScript

Use to specify a list of Sys IDs for reference records. Using this attribute, you can define what records to cache while in offline mode.

Reference fields can return many thousands of records, but only 1,000 records are supported to cache for offline mode. Use this attribute to define the specific records (1,000 or less) that you want to cache for use while offline.

If this attribute is not used, then the first 1,000 records returned are cached.

Please mark this response as Helpful & Accept it as solution if it assisted you with your question.
Regards
Tanushree Maiti
ServiceNow Technical Architect
Linkedin: