I am using a Mulesoft Salesforce connector for the integration of a system with Salesforce. To achieve it I was calling three-time Salesforce for an operation such as to get assets from Salesforce by using HTTP connector
- to get token
- to get salesforce API version
- the actual rest API call
to avoid three calls I used a Salesforce connector that is easy to configure and easy to use.
My question is here now that what is the best way for it? using HTTP call three times or a salesforce connector?
We did it using Salesforce connector and in MuleSoft I would say that's the best way to do it. It simplifies the whole process by handling the OAuth token services etc.
As Salesforce bought MuleSoft I believe there will be seemless integration options will come in future. There are many already.
That connector is just a wrapper over those multiple http calls actually.