Skip to main content
Solved

Mobile sync - push data

  • September 14, 2022
  • 9 replies
  • 180 views

Forum|alt.badge.img+9
  • Sidekick (Customer)
  • 48 replies

Hi All,

 

I would like to push data from a custom table to the mobile. I created a sync rule with a extract rule.
Set a Frequency on the sync rule, but nothing is getting pushed and the app isn’t updated.


I have to push the sync now button, in order the push the data. Is there a way to send the data to mobile on a frequent base, without a update trigger?

 

Best answer by brian.gummin

Please verify that the MOBILE REPLICATIONS Scheduled Process is Active and functioning as expected.  Review all the Mobile Replication Run Logs to see that all Batch sync rules are working as expected.  Check Mobile Error Log to see if there are any errors for the sync rule for your custom table.

View original
Did this topic help you find an answer to your question?

9 replies

Anjula Priyanath
Superhero (Employee)
Forum|alt.badge.img+15

Hi @drooij,

The definition of the sync method is to define the triggering method.

Real-time is used to sync data when inserting/ updating them.

Batch type is used to sync data on a defined duration.

In this case, if you need to sync data without any updates then you can use batch-all type instead of batch-delta. However, if you use batch-delta, then only the updated data will be synced in the defined duration.


Forum|alt.badge.img+9
  • Author
  • Sidekick (Customer)
  • 48 replies
  • September 14, 2022

Hi @Anjula Priyanath ,

 

Thanks, so if I set the sync rule to Batch-All with a frequancy of 1. Will it then sync the complete table every hour?


Anjula Priyanath
Superhero (Employee)
Forum|alt.badge.img+15

Yes @drooij. Based on the initial query, the data will be synced in every 1 hour.

But, please ensure to use proper constraints to avoid any performance impact. You can follow the baseline sync rules(address, place, etc.) to get an idea.


Forum|alt.badge.img+9
  • Author
  • Sidekick (Customer)
  • 48 replies
  • September 14, 2022

Thank @Anjula Priyanath,

 

But unfortunately the data isn’t pushed, Set the sync on batch-all with frequency on 1. Only after an manual initialization (not the sync) or via the sync now button it will update the mobile. 


brian.gummin
Hero (Employee)
Forum|alt.badge.img+15
  • Hero (Employee)
  • 161 replies
  • Answer
  • September 14, 2022

Please verify that the MOBILE REPLICATIONS Scheduled Process is Active and functioning as expected.  Review all the Mobile Replication Run Logs to see that all Batch sync rules are working as expected.  Check Mobile Error Log to see if there are any errors for the sync rule for your custom table.


Forum|alt.badge.img+9
  • Author
  • Sidekick (Customer)
  • 48 replies
  • September 15, 2022

Hi @brian.gummin,

 

Thanks! The scheduled process was inactive, I activated it again and now I’m revieving data.

Btw, is an Extract rule now still necessary?


brian.gummin
Hero (Employee)
Forum|alt.badge.img+15
  • Hero (Employee)
  • 161 replies
  • September 15, 2022

Hi @drooij , glad you found it! 

If you mean an Extract that sends the <perform_process_message_to_mobile> MPM, that depends on each Sync Rule’s Delivery Method.  You normally do not have to worry about editing any Extracts for Mobile because when you save a sync rule, the business policy automatically creates or edits the appropriate Extract.  Extracts are only used for Real Time and Batch - Delta sync rules.


Forum|alt.badge.img+9
  • Author
  • Sidekick (Customer)
  • 48 replies
  • September 19, 2022

Hi @brian.gummin, thank you. Sadly I’m now running into a different issue. When the table is empty, there is off course no update. But it won’t remove the old lines, only if there is a new line. 

 

Is there a way to also send a NULL update (or something like that) to mobile? To say, this table is now empty. 


Forum|alt.badge.img+9
  • Author
  • Sidekick (Customer)
  • 48 replies
  • September 19, 2022

Seems when no records are found, there is no push.


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings