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 

HTTP (RESTful) Services

Can I use Apex web servies (HTTP (RESTful) Services) to make an API call to a third party tool/website ?

Can someone please provide me with the steps/directions for this?

Thanks!
pconpcon
What you are looking for is to make Apex Callouts.  I'd recommend going over this Trailhead [1] and looking at these articles [2] [3].  HTTP RESTful Services are more for incoming calls to REST endpoints you make inside of Salesforce (IE Internet -> Salesforce).

[1] https://developer.salesforce.com/trailhead/apex_integration_services/apex_integration_rest_callouts
[2] https://developer.salesforce.com/page/Apex_Web_Services_and_Callouts
[3] https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_callouts_http.htm
Jes ThomasJes Thomas
Use Case: Whenever a record is generated or update, based on a certain criteria I would like to make an API call to an external third party survey tool to send out a survey. 
Can you please suggest what should be the steps to do this?

Thanks!
 
pconpcon
Yes, you would want to do an Apex Callout.  Again, I would recommend reading over the previous articles and doing the callout trailhead.
Jes ThomasJes Thomas
Thanks, I will check that out and reach out if I have more questions.