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

Rest Nested {} in provisioning call

JEllis
New Contributor III
New Contributor III

I need mimic the following JSON that works in the body in Postman.

{
"IsDefault": false,
"Role": {
"XRefCode": "abc123"
},
"EffectiveStart": "2023-07-16"
}


Error Message: "call1":{"message":"Unexpected end-of-input: expected close marker for Object (start marker at [Source: {\"IsDefault\": \"false\",\"Role\": {\"XRefCode\":\"${entitlementValue.entitlementID}\"},\"EffectiveStart\":\"${today.getTime().format(yyyy-MM-dd)}\"; line: 1, column: 1])\n at [Source: {\"IsDefault\": \"false\",\"Role\": {\"XRefCode\":\"${entitlementValue.entitlementID}\"},\"EffectiveStart\":\"${today.getTime().format(yyyy-MM-dd)}\"; line: 1, column: 271]","status":"Failed"}}
I am getting errors when trying to use the following httpParams
"httpParams": "{\"IsDefault\": \"false\",\"Role\": {\"XRefCode\":\"${entitlementValue.entitlementID}\"},\"EffectiveStart\":\"${today.getTime().format(yyyy-MM-dd)}\""

1 REPLY 1

pmahalle
All-Star
All-Star

Can you try the below options for https params:

Option1:

"httpParams": "{\"IsDefault\": \"false\",\"Role\": {\"XRefCode\":\"${entitlementValue.entitlementID}\"},\"EffectiveStart\":\"${today.getTime().format(yyyy-MM-dd)}\"}"

Option 2:

"httpParams": "{\"IsDefault\": false,\"Role\": {\"XRefCode\":\"${entitlementValue.entitlementID}\"},\"EffectiveStart\":\"${today.getTime().format(yyyy-MM-dd)}\"}"


Pandharinath Mahalle(Paddy)
If this reply answered your question, please Accept As Solution to help other who may have a same problem. Give Kudos 🙂