SuiteApp Version: eXtendMobile 1.12 and above
Mobile App Version: eXtendMobile 1.12 and above
Audience: eXtendMobile Admin

Use Case

  • Caching function data to update records when there is no internet access available.

Overview

eXtendMobile allows you to cache your functions for executing updates to records when there is no internet access available. The requests are saved on the mobile device and are sent to NetSuite for processing once internet access is restored.
This feature is exclusively available in the eXtendMobile app, supporting create, update, view, and list function types. To use function caching, you must also disable the Synchronous Function feature.

Configuration

When creating or updating any existing functions, you'll find an option named Cache Function. Enable this option to turn on caching for the function.
Image Placeholder

Once enabled, an icon indicating that caching is active will appear on the function tile, as shown below.
Image Placeholder

Cache Scheduling

To view all the related record types that are backed up based on the functions enabled with caching, navigate to Settings → Function Cache Settings.
Image Placeholder
Image Placeholder

A list of cached record types, based on the functions marked as caching functions, will appear as shown in the screenshot below: 
Image Placeholder

When you tap on any record type, you will see the caching update scheduling details. By default, the cache update duration is set for one day. You can change the cache update duration using the screen below:
Image Placeholder

When a function enabled with caching is deleted or updated, the caching searches retain the fields used for caching. Since these fields are no longer in use, you can tap the Optimize Saved Search button to remove them from the caching search. 
If a new function or field is added, it will automatically be included in the cached search. The cache is also updated when a user logs into the mobile app.

You can also tap the Cache Now button to update the cache immediately. If the cache cannot be successfully updated, it will appear in red:
Image Placeholder

Tap the record tile to see the error: 
Image Placeholder

When users log in, the cache is not updated instantly. In the cache settings, you will see a timer icon next to the records not cached, and the tiles will be greyed out as shown in the screenshot below. The caching starts 15 minutes after login. If you want, you can tap on the record tiles to update them directly. 
Image Placeholder

To update the cache now, tap on the record tile and tap Cache Now
Image Placeholder

Once updated, the list will be updated as shown below:
Image Placeholder