Skip to main content The Trailblazer Community will be unavailable from 2/1/2025 to 2/2/2025. Please plan your activities accordingly.
Hi,

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

 
1 answer
  1. Mar 20, 2020, 1:25 AM
    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.

     
0/9000