Rest Connection - Disable account

prachi
New Contributor III
New Contributor III

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

 

5 REPLIES 5

rushikeshvartak
All-Star
All-Star

Try task.accountkey.name

Thanks Rushikesh

I tried using the above parameter but still getting error :

prachi_0-1674365824427.png

Regards,

Prachi

task.accountKey.customproperty1

Thanks Rushikesh but still getting the same error:

 

prachi_0-1674403046506.png

Regards,

Prachi

Then account customproperties are not exposed.

if custom property value same as users email then use users email