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
TerminusbotTerminusbot 

Best Practice: Refresh Record via Web Service Call - Moving to Lightning

I have a custom object called 'Policy__c'. I have a Trigger to fire a Web Service call when a Checkbox field is equal to True on the Policy__c object record. 

Checkbox

When the checkbox is True the trigger fires the callout. 

Before Lightning I would check this box via a JavaScript button called 'Policy Sync'. This worked great but we are now moving to Lightning. 

Policy Sync


What is the best way to handle this in Lightning?