I plan to develop an integration pipeline between two salesforce dev orgs for the following use case.
Use Case :
Send a custom object record (having two string fields only) from Salesforce Developer Box (S1) to Salesforce Developer Box (S2).
Features to be developed
- Create a REST Webservice in S2 which will consume the payload sent to it from S1 and create a record in S2. (PUT request)
- Create a REST Webservice in S2 which will return true or false depending upon the input query parameter in the payload. (GET request)
Questions
a) How the authentication will be handled for the integration request from S1 to S2 ?.
b) How do we actually invoke the REST Webservices in S2 from S1 ?.
Would appreciate any pointers or links or guidance for my above questions :)
PS:
In our company we use TIBCO for all our integration needs as such we never used Salesforce API for integration needs. I am aware that we can achieve Salesforce to Salesforce Integration via OOTB functionality but I would like to experiment with REST/JSON setup instead of relying on the OOTB functionality. :)