By default, the prebuilt Salesforce connection communicates via Salesforce REST APIs. However, it doesn’t currently allow you to directly access relative URIs to Salesforce endpoints. These endpoints can be useful, for example, for fetching metadata from your Salesforce environment.
The solution described below involves routing your connection to a relative URI by specifying HTTP headers in integrator.io API exports or imports, acting as a proxy for requests to your Salesforce connection.
- Export (read) via proxy
Next, set up an integrator.io connection.
Before you can interact with the proxy, you must find which relative URI you want to get data from. See the Salesforce REST API reference for these values.
In Flow builder, create an export to the application integrator.io, selecting the integrator.io connection that you just created. Define the export as follows:
Name: Give the export a name.
Form view: Choose REST API.
HTTP method: Choose POST.
|The method to use with your REST call, most likely GET for an export
Relative URI: Enter the proxy URI for your Salesforce connection, referencing your Salesforce connection ID that you copied above, in the format,
Export type: Choose All.
Click Preview to see your Salesforce data.