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
NerijusNerijus 

How to create a trigger which executes after custom managed button is clicked

Hey everyone,

I'm trying to create a trigger which will execute after custom button from maanged package is clicked. I want to do a callout, check some data and based on response prevent or continue exetution of that button.
Can someone point me to the right direction please? Any article or maybe anyone did something similar?

Much appreciated!
Raj VakatiRaj Vakati
You can do like this .. 

Check what all fields are updating on the managed package button and write and update or insert trigger to fire the on those field value changes 

Now your button will trigger the trigger on those value changes 
NerijusNerijus
That button sends a quote to another system. It doesn't update fields on Salesforce. It creates a new object after it sends the data, but that's already too late.
Thanks for your suggestion!