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
SatmetrixSatmetrix 

Trigger on Case closed -Do a http post

Hi All,

 

We want to DO a HTTPpost with Certain data related to cases only when a case is closed.

Is it Possible and is there any example for the same?

 

Regards

Pradeep

salesforce expertsalesforce expert

you cannot do it inside trigger. create a @future method in a separate class and do your http post stuff inside of it!

 

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

 

http://wiki.developerforce.com/page/Apex_Web_Services_and_Callouts

 

 

let me know if this helps you!

 

- baskaran