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
VIKASH CHAND KUMARVIKASH CHAND KUMAR 

Apex Webservice class which accept Http response and can be exposed outside salesforce

I need to write Apex Webservice which will accept Http response and parse the JSON based on Wrapper , and create records. This webservice will be exposed so that it can be accessed outside. do you have any sample class, please help
Omar Rajab 94Omar Rajab 94
Hi KUMAR, 

This Trailhead should guide you to do implement webserivce.  this: https://trailhead.salesforce.com/de/content/learn/modules/apex_integration_services/apex_integration_webservices
So To Do is: 
  1. REST Apex Class with the annotation @RestResource and then methods with @HTTPGET, @HTTPPOST - based on the requieremnts
  2. Coonected App to restrict which objects/classes can be accessed outside from salesfoce
  3. API User (Salesforce User)
regards,
Omar