Announcing the Saviynt Knowledge Exchange unifying the Saviynt forums, documentation, training,
and more in a single search tool across platforms. Read the announcement here.

SAp Concur connectivity REST

Rajatlm10
New Contributor III
New Contributor III

Hi, 

I am using the below connection JSON for REST connector for my SAP concur application. 

{
"authentications": {
"acctAuth": {
"authType": "oauth2",
"url": "https://xyz.com/oauth2/v0/token",
"httpMethod": "POST",
"httpParams": {
"client_id": "",
"client_secret": "",
"grant_type": "refresh_token",
"refresh_token": ""
},
"httpHeaders": {
"contentType": "application/x-www-form-urlencoded"
},
"expiryError": "Forbidden. Please check your Instance URL and OAuth token",
"authError": [
"Forbidden",
"Forbidden. Please check your Instance URL and OAuth token"
],
"timeOutError": "Read timed out",
"errorPath": "Error.Message",
"maxRefreshTryCount": 5,
"tokenResponsePath": "access_token",
"tokenType": "Bearer",
"accessToken": "<Token>"
}
}
}

 

I get "connection is successfully" when i hit test connection. How can i make sure i am able to connect ? I see in logs and couldn't find much information. For reference i am attaching logs screenshot. 

Rajatlm10_0-1715695414360.png

Even if i assume connection is successfull i am doing the recon job is ending as succcess but no accounts are getting pulled. 

can anyone help me on this ?

 

6 REPLIES 6

rushikeshvartak
All-Star
All-Star

it must be issue with import json. 

Could you kindly provide a detailed snapshot of the information extracted from the logs, encompassing errors and other pertinent functionality details encountered during the execution of this process? Your assistance in furnishing this information would greatly aid in the analysis and resolution of any issues .


Regards,
Rushikesh Vartak
If you find the response useful, kindly consider selecting Accept As Solution and clicking on the kudos button.

Manu269
All-Star
All-Star

1 option could be via connection json validation to actually see if its working

Developers Handbook (saviyntcloud.com)

Regards
Manish Kumar
If the response answered your query, please Accept As Solution and Kudos
.

Rajatlm10
New Contributor III
New Contributor III

@Manu269 @rushikeshvartak 

For Connection JSON,

we have to update the access token value after every 3 hours. why do we have to keep on changing the access token value ? Does anyone has any idea about this ?

First time you need to update post that it will be updated automatically.


Regards,
Rushikesh Vartak
If you find the response useful, kindly consider selecting Accept As Solution and clicking on the kudos button.

@rushikeshvartak 

After every 3 hour if we run any job/task it fails with connection error (401). 

and when we update the access token in the connection JSON it runs successfully. 

Please share postman screenshot and curl command [Refer https://codingnconcepts.com/postman/how-to-generate-curl-command-from-postman/ ]
⚠️‼️‼️Do not upload any attachments that contain sensitive information, such as IP Addresses, URLs, Company/Employee Names, Email Addresses, etc.‼️‼️⚠️


Regards,
Rushikesh Vartak
If you find the response useful, kindly consider selecting Accept As Solution and clicking on the kudos button.