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

rest api call from salesforce to salesforce



I have a apex REST API in my 1st salesforce. I need to call the REST API from my 2nd salesforce account using HTTP POST. please help me regarding this problem and share any useful code/link



Vishal Gupta


Hi Vishal,


Refer below link for HTTP post request.

How to make a post request to some other server from apex controller


Important :
Hit Kudos if this provides you with useful information and if this is what you where looking for then please mark it as a solution for other benefits.

Thank You,
Hitesh Patel
SFDC Certified Developer & Administrator


Use the following link below


if any confusion rely in post



Thanks guys.. Its working..