function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
JCP.ax1627JCP.ax1627 

@Future Calls from a Trigger controlling the synchronize ( best practice )

Hi to everyone!!,

 

I´m trying to synchronize with an external system, and i´m using a @futre call from a trigger, i´m trying to make a logic for the respond of the external call. I can use a flag field ( boolean ) if the call out fails, so that way i will know that the record is not synchronize, and then make some logic with a button or with schedule class that recollect all these record and and attempts to synchronize again.

 

Is There another way to do this?.. Best Practice to do this?...

 

I will appreciated any answer... Thanks a lot.

Vinit_KumarVinit_Kumar

This seems fine to me.As a suggestion,you can remove the field from Layout so that users do not get confused as whay this dummy field is used.