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
Durai MuruganDurai Murugan 

salesforce lead update to my site

Hi,
I have a PHP site, when I add the contact form on my site. it will add as lead in Salesforce. It's done. But my requirement is, when can I change the lead detail in Salesforce, it is possible update to my site?
Simply say, wherever make the changes it will affect both (my site and Salseforce)
Any ape or source code available for this?
Thanks
Khan AnasKhan Anas (Salesforce Developers) 
Hi Durai,

Greetings to you!

You can create an apex trigger on after update DML operation to call HTTP callout class to send an outbound message to PHP listener.

Please refer to the below links for reference:

https://blog.jeffdouglas.com/2009/03/16/restful-web-service-callout-using-post/

https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_classes_restful_http.htm

Reference: https://salesforce.stackexchange.com/questions/113332/sync-salesforce-data-to-my-web-app

I hope it helps you.

Kindly let me know if it helps you and close your query by marking it as solved so that it can help others in the future. It will help to keep this community clean.

Thanks and Regards,
Khan Anas