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
Roy_GRoy_G 

Calling REST service from internal server

In my company we are creating an integration between Salesforce and our Product system. We are using the APEX REST to communicate between our system to Salesforce.

 

I’ve built the integration using a recipe I’ve found in Force.com Cookbook (“Interact with the Force.com REST API from PHP” à http://developer.force.com/cookbook/recipe/interact-with-the-forcecom-rest-api-from-php), however the flow implemented in this recipe requires the user to log in to Salesforce.

The integration I’ve built is a server-to-server integration, what is the best-practice of building a server-to-server REST integration?

I’ve found an article in Stack Overflow that mentioned logging-in using SOAP and then calling  REST services using the SOAP session-Id, but it seems like hacking to me, can you please point me to the right direction?

Thank you,

Roy

 

Best Answer chosen by Admin (Salesforce Developers) 
Roy_GRoy_G