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
Sid LightningSid Lightning 

Update in external system using external field id ?


Currently I am making an apex callout to external system using a lightning component button,

It generates an external system id ( CustomerId)

As a part of my requirement, when I change Account - Name, GST, PAN and email it should go to the external system only if CustomerId is present on account.

It should update the same external id in external system

I understand, I will require a REST API integration to make this update call. can anyone help me in this

Ashima nidhiAshima nidhi
Write a trigger on the Account with  event 'after update'
Use @future(callout=true) for the method in which you wrote the logic to make callout. With current record used
Check in case you need to do on the base of response.

Hope the  above information was helpful.

Please mark as Best Answer so that it can help others in the future.