PARTNERS - Please join us for our upcoming webinar:
Leveraging Intelligent Recommendations for Operational Transformation.
AMS Partners click HERE | EMEA/APJ Partners click HERE

Getting success response for 'New Account' task but the task is not getting completed

shruanand24
New Contributor
New Contributor

For one of our REST based application we are getting success response message in "New Account" task of provisioning comment, but the task is not getting completed.

Provisioning Comment -  {"call1":{"headers":"gasx2z2jh4Bxoz/fVfCn7b3Pj1lto1MFbn4pGei2RP9QvXt7eDO9Fgdl7W7dPuvHMkzbgTR/dKCXXNRvX0/aj81gUrnapyw1/XybjzV5tYnjxJJRx/0FdkYxUzGuEDshg/fqOixU2PcVc3RY7ePas6Flfvny4CbhmiAGx2FsOXXW5+15UFu+6xGT+g3fRga+MDQU68Ci7zxtiSdsWYJOlqC/IMQlypwPhhiVdSEPHFEgEx3NGEQ2xf3VQVE/R5qXSga1pkJsnFvgKgjviDIwjELZ2BNXT4wYniQBWaqVcFdQVDsybBAgB/h8HlUtiIPUj99VR7qxFjM0LZZtp8GC7EWoDjotYNt8pLPvEQV3//PQxmpm2jUC9qkOeY2EtaAv5ibUkMKUdz2ZIJ9S80jbI5zQfuwUSjdRq43L3YgiaSJx7bOEIRk50/BKr4w1nQ8oTbM6fhncZMz2MU+UWTQfXxhTo4RURZkizaVEKb5WydnuFqHFaImLr+2k6X0/2V4BLW27ciyhj8lmeHGmL5L0hA2bphduDjXFcOD8ikrggayRTfuOdWNvhxzeUEOjhE3x","message":{"message":"User created"},"statusCode":201,"description":null,"status":"Success"}}

Create Account JSON -

{
"call": [
    {
      "name": "call1",
      "connection": "acctAuth",
    "showResponse": true,
      "url": "https://abc/user" ,
      "httpMethod": "POST",
      "httpParams": "{\"loginId\": \"${user.username}\",\"firstName\": \"${user.firstname}\",\"lastName\": \"${user.lastname}\",\"language\": \"EN\",\"dateFormat\": \"MM/dd/yyyy\",\"numberFormat\": \"#,###,###,##0.00#\",\"localeCountry\": \"${user.country}\",\"email\": \"${user.email}\"}",
      "httpHeaders": {
        "Authorization": "${access_token}",
    "Accept": "application/json"
      },
      "httpContentType": "application/json",
      "successResponses": {
        "statusCode": [201, 200, 204]
      },
      "unsuccessResponses": {
        "statusCode": [400, 403, 401, 404, 409, 501, 500]
      }
    }
  ]
}

Is there a way to fix this? Attaching logs with this ticket.

[This message has been edited by moderator to disable URL hyperlink]

3 REPLIES 3

rushikeshvartak
All-Star
All-Star
{
"accountIdPath": "accountName",
"call": [
    {
      "name": "call1",
      "connection": "acctAuth",
    "showResponse": true,
      "url": "https://abc/user",
      "httpMethod": "POST",
      "httpParams": "{\"loginId\": \"${user.username}\",\"firstName\": \"${user.firstname}\",\"lastName\": \"${user.lastname}\",\"language\": \"EN\",\"dateFormat\": \"MM/dd/yyyy\",\"numberFormat\": \"#,###,###,##0.00#\",\"localeCountry\": \"${user.country}\",\"email\": \"${user.email}\"}",
      "httpHeaders": {
        "Authorization": "${access_token}",
    "Accept": "application/json"
      },
      "httpContentType": "application/json",
      "successResponses": {
        "statusCode": [201, 200, 204]
      },
      "unsuccessResponses": {
        "statusCode": [400, 403, 401, 404, 409, 501, 500]
      }
    }
  ]
}

Regards,
Rushikesh Vartak
If this helped you move forward, click 'Kudos'. If it solved your query, select 'Accept As Solution'.

Adding accountidpath worked

NM
Honored Contributor
Honored Contributor

@shruanand24 is it happening for all the task or only for one?