Question

Mobile - Call sync rule via client script

  • 22 March 2023
  • 3 replies
  • 69 views

Userlevel 2
Badge +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

Userlevel 6
Badge +26

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!

Userlevel 2
Badge +9

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

Userlevel 6
Badge +26

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!

Reply