Ok, so according to what I've seen on various Salesforce.com forums the 401 error with "invalid_client" indicates that SFDC believes the Client ID and/or Client Secret you're passing in is invalid. I would verify that what was copied into the
Salesforce Grant credential in Credential Manager, for the Consumer Key and Consumer Secret properties, are correct values. Make sure there's no additional white space at the beginning or end of the values.
An additional step you can take to verify those values is to go into System -> Objects -> Web API Services and open the
Salesforce Authentication service definition. Click on the
Salesforce Token Introspection action and check the flags next to
Enable Request Data Output Parameter and
Disable Sending of Request. After that, go back to your test process (make sure to click the reload button if it was already open so it picks up the changes in the Web API) and double-click on the
GetTokenActive stage. Go to the Outputs tab and create a new data item for the Request Data output. Then run the process and see what the request includes in the body. It should look something like this:
token=[Access Token]&client_id=[Consumer Key]&client_secret=[Consumer Secret]&token_type_hint=[token_type_hint]
Compare the values of Consumer Key and Consumer Secret with your credential from SFDC.
Cheers,
------------------------------
Eric Wilson
Director, Partner Integrations for Digital Exchange
Blue Prism
------------------------------