and more in a single search tool across platforms. Read the announcement here. |
02/15/2024 11:18 AM - last edited on 02/15/2024 09:34 PM by Sunil
Hi Folks,
I am creating Zoom Account with license. When i was passing JSON without license assignment, account is getting created but now i am creating account with license as well using azure Account Id(it will assign license at the time zoom account creation), it is getting failed. It multiple changes in JSON but still see the same error.
Can anyone please what is wrong in my JSON.
Create account Json-
{
"accountIdPath": "call1.message.id",
"dateFormat": "yyyy-MM-dd'T'HH:mm:ssXXX",
"responseColsToPropsMap": {
"displayName": "call1.message.first_name~#~char",
"name": "call1.message.email~#~char",
"customproperty1": "call1.message.first_name~#~char",
"customproperty2": "call1.message.last_name~#~char",
"customproperty3": "call1.message.type~#~char"
},
"call": [
{
"name": "call1",
"connection": "acctAuth",
"url": "https://removed-prod.azurewebsites.net/api/zoom-createAccount ",
"httpMethod": "POST",
"httpParams": "{\"action\":\"custCreate\",\"user_info\":{\"email\":\"${user.email}\",\"firstName\":\"${user.firstname}\",\"lastName\":\"${user.lastname}\",\"zone\":\"${user.regioncode}\",\"displayName\":\"${user.displayname}\",\"type\":1 }}",
"httpHeaders": {
"Authorization": "${access_token}",
"x-functions-key": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
},
"httpContentType": "application/json",
"successResponses": {
"statusCode": [
201
]
}
}
]
}
Payload in Log viewer-
Response in Provisioning Comment-
{"call1":{"headers":null,"message":"","statusCode":200,"description":null,"status":"Failed"}}
Thanks
shwet
[This message has been edited by moderator to mask Url]
Solved! Go to Solution.
02/15/2024 09:06 PM
Share postman screenshot
02/15/2024 09:55 PM - last edited on 02/15/2024 10:06 PM by Sunil
Hi @rushikeshvartak ,
Please find the screenshot-
Thanks
shweta
[This message has been edited by moderator to mask URL]
02/15/2024 10:57 PM
Hi @Shwet01 ,
I see that there are few attributes like custCreate and type in the httpParams of the Json which are not passed in postman. Please ensure you pass the same body in the Json as well.
02/15/2024 11:59 PM
Hi @Vedanth-BK ,
Thank you for pointing out.
I have corrected the json but now getting different error.
{
"accountIdPath": "call1.message.id",
"dateFormat": "yyyy-MM-dd'T'HH:mm:ssXXX",
"responseColsToPropsMap": {
"displayName": "call1.message.first_name~#~char",
"name": "call1.message.email~#~char",
"customproperty1": "call1.message.first_name~#~char",
"customproperty2": "call1.message.last_name~#~char",
"customproperty3": "call1.message.type~#~char"
},
"call": [
{
"name": "call1",
"connection": "acctAuth",
"url": "https:prod.azurewebsites.net/api/zoom-createAccount",
"httpMethod": "POST",
"httpParams": "{\"email\":\"${user.email}\",\"firstName\":\"${user.firstname}\",\"lastName\":\"${user.lastname}\",\"zone\":\"${user.regioncode}\",\"displayName\":\"${user.displayname}\"}",
"httpHeaders": {
"Authorization": "${access_token}",
"x-functions-key": "XXXXXXXXXxxxx="
},
"httpContentType": "application/json",
"successResponses": {
"statusCode": [
201
]
}
}
]
}
call1":{"headers":null,"message":{"status":500,"data":[],"messages":["error.server.exception"],"errors":[null]},"statusCode":200,"description":null,"status":"Failed"}}
500 is interval server error right.
Thanks
shwet
02/16/2024 12:05 AM
@Shwet01 yes 500 is internal server error but i suspect the URL might be incorrect in the json. Please check.
02/15/2024 10:04 PM
Hi @Shwet01,
Try this-
{
"accountIdPath": "call1.message.id",
"dateFormat": "yyyy-MM-dd'T'HH:mm:ssXXX",
"responseColsToPropsMap": {
"displayName": "call1.message.first_name~#~char",
"name": "call1.message.email~#~char",
"customproperty1": "call1.message.first_name~#~char",
"customproperty2": "call1.message.last_name~#~char",
"customproperty3": "call1.message.type~#~char"
},
"call": [
{
"name": "call1",
"connection": "acctAuth",
"url": "https://removed-prod.azurewebsites.net/api/zoom-createAccount ",
"httpMethod": "POST",
"httpParams": "{\"action\":\"custCreate\",\"user_info\":{\"email\":\"${user.email}\",\"firstName\":\"${user.firstname}\",\"lastName\":\"${user.lastname}\",\"zone\":\"${user.regioncode}\",\"displayName\":\"${user.displayname}\",\"type\":1 }}",
"httpHeaders": {
"Authorization": "${access_token}",
"x-functions-key": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
},
"httpContentType": "application/json",
"successResponses": {
"statusCode": [
200
]
}
}
]
}
02/15/2024 11:42 PM
Hi @NM ,
I see that you have modified the status code 200. This will only complete the task and zoom account account will be created in saviynt but will not actually provision the zoom account in zoom, neither license will be assigned. It tried the same earlier.
Can you suggest something else. I am getting payload in the logs, what is my understanding is that saviynt is getting the user value and trying to hit the target but getting failed. Is there some issue form target end or saviynt?
Thanks
shwet
02/16/2024 02:54 AM
I am able to create zoom account with license. Issue was with JSON only. I removed the unwanted attribute like action, user info and type and it worked. Thank you all for all your help.
Thanks
shweta singh