Skip to main content
Question

Mobile - Call sync rule via client script

  • Mar 22, 2023 12:52 PM UTC
  • 3 replies
  • 120 views

Forum|alt.badge.img+9

Hi All,

 

Is it possible to call a sync rule or trigger it somehow via a client script in mobile? With additional parameters? We want to retrieve (sync to mobile) specific data on user demand via mobile.  

 

Regards,

3 replies

Shneor Cheshin
Superhero (Employee)
Forum|alt.badge.img+28
  • Superhero (Employee)
  • Mar 23, 2023 2:38 AM UTC

Hi @drooij 

I dont know a way to achieve your requirments.

Can you elaborate? What are you trying to do? Maybe we can thing of an alternative solution.

Cheers!


Forum|alt.badge.img+9
  • Author
  • Sidekick (Customer)
  • Mar 29, 2023 1:33 PM UTC

Hi @Shneor Cheshin, We want to achieve that a user can call a set of data via mobile.
Which then is getting synced. 

This way we won’t have to import large sets of data, but the user can call them on demand


Shneor Cheshin
Superhero (Employee)
Forum|alt.badge.img+28
  • Superhero (Employee)
  • Mar 30, 2023 1:16 AM UTC

Hey @drooij 

You could use a client script with ‘executePerform’ function.with MPM ‘perform_replication_for_table’ (search executePerform in FSM client script for examples)

However, this will trigger the sync rule and sync to all relevant mobile clients.

What is the data you want to sync? Instead of writing “...call a set of data...” can you be more specific?

Is it a custom table? Baseline records? Something else?

Cheers!