05/12/2022 05:15 PM
Hi There-
We have a need to create a REST Connector to our Salesforce instance to obtain entitlements that are stored in a custom object. I am able to run the required APIs through Postman. However, when I convert the calls into the connectionJson, something appears to be going wrong.
Below is the sample JSON with redactions:
Screenshot obtaining access_token:
Screenshot using the access_token to run test connection:
05/17/2022 07:36 AM
Hello! Thank you for your question! We are investigating an answer. Someone will get back to you soon!
05/18/2022 10:09 AM
Hello,
Please find below sample Connection JSON for Salesforce:
{
"authentications": {
"acctAuth": {
"authType": "oauth2",
"url": "https://ap16.salesforce.com/services/oauth2/token?grant_type=refresh_token&client_id=123456&client_s...",
"httpMethod": "POST",
"httpParams": {},
"httpHeaders": {
"Accept": "application/json"
},
"httpContentType": "application/x-www-form-urlencoded",
"expiryError": "INVALID_SESSION_ID",
"authError": [
"INVALID_SESSION_ID"
],
"timeOutError": "Read timed out",
"errorPath": "errorCode",
"maxRefreshTryCount": 5,
"tokenResponsePath": "access_token",
"retryFailureStatusCode": [
401
],
"tokenType": "Bearer",
"accessToken": "Bearer abc"
}
}
}