Skip to main content
August 7, 2024
Question

Synched records available to query in offline mode for mobile?

  • August 7, 2024
  • 4 replies
  • 0 views

Hi All,

We have requirement to provide one offline mobile form as a site visit task. There engineer needs to search the customer from synched customer record. 

just want to know is this synched record available offline to query? if not available what is the best way to achieve the same.

Thanks is advance.

4 replies

August 7, 2024

As far as I know, you need to create a CDT for that. The following link might be helpful.

https://docs.appian.com/suite/help/24.2/offline-mobile-design-best-practices.html#querying-and-writing-data

ramkumarpAuthor
August 7, 2024

Thanks for the reply. but question is, is that synched record available to query when the task is opened in Mobile offline?

August 7, 2024
Check a!queryRecordType() function compatibility. I don't think the record type is synced or not make any difference here.
jordand3157
December 12, 2024

Hi [mention:2584b3e0523f4ee79dc2f024a2cb91ae:e9ed411860ed4f2ba0265705b8793d05] , 

If you still need an answer - yes you can query a synced record. However, you must query the record type in a local variable at the top of the parent interface and cast the results to a CDT or map().

Here's an example design pattern for offline forms to cast the results of a synced record query to a list of a!map() (or you can replace a!map() with your CDT type):

a!localVariables(
  local!queryData: cast(
    a!listType(typeof(a!map())),
    a!queryRecordType(...).data
  ),
  a!formLayout(...)
)

I hope this helps