OpenFn / adaptors

The new home for OpenFn adaptors; re-usable connectors for the most common DPGs and DPI building blocks.
GNU General Public License v3.0
4 stars 8 forks source link

`salesforce`: report better error when oath not provided for bulkQuery #577

Closed josephjclark closed 1 month ago

josephjclark commented 1 month ago

If using the bulkQuery function in salesforce, the user must include an API Version in the oauth credential.

Right now we throw a misleading error:

AdaptorError: The requested resource does not exist
{"message":"The requested resource does not exist","name":"AdaptorError"}

We should

1) Report a nice clean error if there's now apiVersion 2) Maybe default the apiVersion with a warning? Is the version tied to oauth? 2) Add some documentation around this in bulkQuery docs, and maybe some help text in the schema as well (api version is required for bulkQuery)