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
Jes ThomasJes Thomas 

Trigger API to third party tool/website

Hello, How can I write a trigger to send API to a third party tool/website?

Use case: When a record is generated or updated and the specified criteria is met, I need to trigger an API to a third party website.

Can someone let me know the steps to do so?

Thank you!
Dario BakDario Bak
Can't do that, you can't call a trird party API in a trigger.
You can call a future method from the trigger, then do the call... 

plan b: put in place a VF page to replace the object editor, you can call from the controller.
Jes ThomasJes Thomas
Thanks for your reply!!