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
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