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
Yogesh LolgeYogesh Lolge 

REST API callout issue

What is the meaning of the below line?
cant understand execution
RestRequest request = new RestRequest();         request.requestUri = URL.getOrgDomainUrl().toExternalForm() + '/services/apexrest/api/v1/party/';
ShirishaShirisha (Salesforce Developers) 
Hi Yogesh,

Greetings!

The above code will generate the link to make the callout url.

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

Based on which,you can make the REST callout by posting any data or getting the data from any third party tool.

Please mark it as best answer if it helps you to fix the issue.

Thank you!

Regards,
Shirisha Pathuri