Hey @Product,
I’m trying to make some basic Salesforce REST API calls using the “Perform an API call in Salesforce” action and I’m running into an issue.
I have a WF with a few SFDC API call WAs configured: https://account.wrk.com/designer/?client_id=5855&wrkflow_id=53042
What’s working:
What’s not working:
Any call to the standard REST endpoints under /services/data/vXX.X/sobjects/
For example:
GET https://innovation-ability-4970.my.salesforce.com/services/data/v65.0/sobjects/
This consistently returns:
[
{
"message": "This session is not valid for use with the REST API",
"errorCode": "INVALID_SESSION_ID"
}
]
e.g.: https://portal.skillpack.io/wrkstation/c384aeab-e053-460a-bd2b-78cb478f4d4f
Additional context:
- All calls are using the same Salesforce OAuth connected account
- The endpoint domain is *.my.salesforce.com (not lightning.force.com)
- Since identity + version discovery work but /sobjects does not, it feels like the OAuth session/token being used may not be valid or fully enabled for Salesforce REST API calls
Could someone please take a look and let me know if this is a configuration issue or something on the Wrk side with how the Salesforce session/token is being applied?