I am trying to interact with Okta API workflows.
One of colleagues has written the workflow to accept:
{ "email": {{email}},
"department": {{department}},
"title": {{jobtitle}},
"company": {{company}},
"office": {{office}},
"managerId": {{managerId}}
}
The variables can either contain a string or be null
To pass the string in JSON, it needs to be in quotes; but, to pass the null it needs to be outside.
When defining my variable is their a way to wrap it in quotes?
eg
{{managerid}} = chr(34) & "Fred Smith" & chr(34)
resulting in
"Fred Smith"
and will that be accepted in the JSON body?
so end result would look like
{ "email": null,
"department": null,
"title": "My New Title",
"company": null,
"office": null,
"managerId": "My New Manager"
}
Thanks in advance
I am not sure if .jsonEncode gives me what I want.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.