Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Automation variables

Myles Boyd
Contributor
October 15, 2024

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

1 answer

0 votes
Myles Boyd
Contributor
October 15, 2024

I am not sure if .jsonEncode gives me what I want.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
TAGS
AUG Leaders

Atlassian Community Events