06/05/2023 11:32 PM
Hi Team.
I am trying to provision account to Docusign.
I configured connection for Docusign regarding to below article.
Account/Entitlement import is success, but, account provisioning is failed.
Below is CreateAccountJSON.
{
"accountIdPath": "call1.message.newUsers[0].userId",
"responseColsToPropsMap": {
"customproperty1": "call1.message.newUsers.email~#~char"
},
"call": [
{
"name": "call1",
"connection": "acctAuth",
"url": "https://demo.docusign.net/restapi/v2/accounts/8dd170d9-2048-41c7-a542-4ec128c82ed5/users",
"httpMethod": "POST",
"httpParams": "{\"newUsers\": [{\"userName\": \"${user.firstname}\",\"email\": \"${user.email}\"}]}",
"httpHeaders": {
"Authorization": "${access_token}",
"Accept": "application/json"
},
"httpContentType": "application/json",
"successResponses": {
"statusCode": [
201
]
}
}
]
}
Error is below.
2023-06-06T10:12:58+09:00-ecm-worker-{"log":"2023-06-06 01:12:57,402 [quartzScheduler_Worker-5] DEBUG rest.RestProvisioningService - response: [auditDetails:[call1:[[headers:null, message:, statusCode:null, description:null, status:Failed], [headers:null, message:, statusCode:null, description:null, status:Failed], [headers:null, message:, statusCode:null, description:null, status:Failed], [headers:null, message:, statusCode:null, description:null, status:Failed]]], call1:[headers:null, message:, statusCode:null, description:null, status:Failed]]\n","stream":"stdout","time":"2023-06-06T01:12:57.40287913Z"}
I tried to post the same request by Postman, and the request is success. But, this is failed with Saviynt.
Do you know any possible reasons?
Best Regards,
Solved! Go to Solution.
06/05/2023 11:51 PM - edited 06/05/2023 11:52 PM
Hello @KK,
Could you please validate the HTTP Param and the API URL?
It appears that there may be an issue with the "unsuccessResponses" value. If possible, could you provide the unsuccessresponse code as you provided for the successreponse?
Have you tried passing the json without any unsuccessResponses code it would be helpful to capture the logs for further investigation.
For Sample :
Create Account Json
{
"accountIdPath": "call1.message.id",
"responseColsToPropsMap": {
"customproperty1": "call1.message.email~#~char"
},
"call": [
{
"name": "call1",
"connection": "acctAuth",
"url": "APIurl/id/users",
"httpMethod": "POST",
"httpParams": "{\"user_name\": \"${user.displayname!=null?user.displayname:''}\",\"first_name\": \"${user.preferedFirstName!=null?user.preferedFirstName:''}\",\"last_name\": \"${user.lastname!=null?user.lastname:''}\",\"email\": \"${user.email!=null?user.email:''}\",\"auto_activate_memberships\":true,\"accounts\":[{\"id\":\"d2e2bbbc-a537-4918-8cee-803d8c0a993f\",\"permission_profile\": {\"id\":\"752553\"}}]}",
"httpHeaders": {
"Authorization": "${access_token}",
"Accept": "application/json"
},
"httpContentType": "application/json",
"successResponses": {
"statusCode": [
200,
201
]
},
"unsuccessResponses": {
"odata~dot#error.code": [
"",
"internal_server_error"
]
}
}
]
}
Thanks,
06/06/2023 03:03 AM
Hi @sudeshjaiswal
Thanks for your answer.
It seems that Access Token was expired.
I refresh Access Token and the issue is solved.
Anyway, thanks for your corresponding.
Best Regards,
06/06/2023 03:24 AM
As a best practice make sure Connection JSON Validation.
Developers Handbook (saviyntcloud.com)