and more in a single search tool across platforms. Read the announcement here. |
04/12/2022 01:16 PM
Hi,
In CreateAccountJSON we are trying to populate ‘Manager’ attribute in Gsuite Application by adding as follows, but it is not populated in Target System(Gsuite).
When I was tried in Postman it working fine as below
{
"primaryEmail": "dummy.user19@dev.homecareassistance.com",
"relations": [
{
"value": "dummy.user15@dev.homecareassistance.com",
"type": "manager"
}
]
}
But, In JSON it through the syntax error
Can you please suggest to built JSON with correct sytanx.
Below is the Json
"httpParams": "{\"name\":{\"familyName\":\"${user.lastname}\",\"givenName\":\"${user.firstname}\"},\"password\":\"Welcome@123\",\"primaryEmail\":\"${user.email}\",\"manager\":\"${managerAccount.name}\"}",
Solved! Go to Solution.
04/12/2022 02:46 PM
Hi Saleem,
The screenshot you have shared and the JSON you have posted towards the end of your question seems different.
Which one are you using in your Connector ? What is the exact error you see in the logs ?
Regards,
Avinash Chhetri
04/12/2022 02:46 PM
Hi Saleem,
Are you using content type as application JSON in postman.
Also in the screenshot that you have provided JSON differs from the actual JSON provided.
Also HTTP parameter starts with two forward slashes,
Could you please try with the below
"httpParams":\"{\"name\":{\"familyName\":\"${user.lastname}\",\"givenName\":\"${user.firstname}\"},\"password\":\"Welcome@123\",\"primaryEmail\":\"${user.email}\",\"manager\":\"${managerAccount.name}\"}",
04/12/2022 02:46 PM
Now its working by using syntax
\"relations\":[{\"type\":\"manager\",\"value\":\"${managerAccount.name}\"
Thank you
04/12/2022 02:46 PM
Saleem,
Thats exactly how you have it in the original post (screenshot)
Regards,
Avinash Chhetri