Click HERE to see how Saviynt Intelligence is transforming the industry. |
01/21/2023 08:30 PM
Hi,
I am working with rest connection and i want to pass the below attributes in my disable account JSON: {\"loginId\":\"account.name\",\"email\":\"account.customproperty1\",\"lastName\":\"account.customproperty2\",\"timeZoneId\":\"account.customproperty3\",\"isActive\":false}.
My complete JSON looks like :
{
"call": [
{
"name": "call1",
"connection": "userAuth",
"url": "https://****************/${account.accountID}",
"httpMethod": "PUT",
"httpParams": "{\"loginId\":\"account.name\",\"email\":\"account.customproperty1\",\"lastName\":\"account.customproperty2\",\"timeZoneId\":\"account.customproperty3\",\"isActive\":false}",
"httpHeaders": {
"Authorization": "${access_token}"
},
"httpContentType": "application/json",
"successResponses": {
"statusCode": [
200
]
},
"unsuccessResponses": {
"statusCode": [
400,
401,
403,
404,
429,
500,
503
]
}
}
]
}
When I hardcode the value for each attribute it is working but not when using dynamic values for account's properties.
Could you pls help with what would be the right syntax or what could be the issue here?
Thanks,
Prachi
Solved! Go to Solution.
01/21/2023 09:12 PM
Try task.accountkey.name
01/21/2023 09:37 PM
Thanks Rushikesh
I tried using the above parameter but still getting error :
Regards,
Prachi
01/22/2023 07:42 AM
task.accountKey.customproperty1
01/22/2023 07:57 AM
Thanks Rushikesh but still getting the same error:
Regards,
Prachi
01/22/2023 02:55 PM - edited 01/22/2023 06:22 PM
Then account customproperties are not exposed.
if custom property value same as users email then use users email
09/14/2023 08:21 AM
hi @rushikeshvartak, is this still not exposed or has anything changed since your last response?
09/27/2023 12:25 AM
I was able to acheive this using -
"httpParams": "{\"loginId\":\"${user.username}\",\"email\":\"${account.customproperty1}\",\"lastName\":\"${account.customproperty2}\",\"timeZoneId\":${account.customproperty3},\"isActive\":false}",
09/27/2023 05:44 AM
Hi @prachi ,
Thanks for updating the forum post with a solution. Can you please mark the relevant post/comment as a solution via ‘Accept As Solution’ to help other community users who may have a similar problem?
09/27/2023 02:52 AM
Thank you for the response. I was able to use it too.