The following is a summary of questions and answers from the Okta Workflows community office hours on Thursday, November 21, 2024. I edit questions for clarity.

New to Okta Workflows
The Getting Started with Okta Workflows page has all the resources to help you get started.
Community forum
Post your questions in the Okta Workflows community forum.
Office hours questions and answers
How do you validate JSON before using it in an API request?
You want to validate the following JSON before using it in an API request:
{
"subject": "๐จ User Activated",
"body": {
"contentType": "html",
"content": "<b>Sara August</b> (<u>asara</u>), <i>President</i>."
}
}
Validating this JSON is a good idea since a missing bracket (or similar) can cause the API request to fail.
There are two approaches to validate the JSON.
Use the JSON – Parse card
Validating JSON using the JSON – Parse card before sending an API request.

If the JSON is invalid (missing a comma after the “User Activated” value), you will see the following error:

Using the Object – Construct card
You can also use the ObjectโConstruct card to create a valid JSON object. Note that you can create nested keys, such as body.content.

Testing the Object – Construct card produces the following JSON object:

How do you call an API for which there is no built-in connector?
The following resources will help you learn how to call an API without a built-in connector.
- Understanding Okta Workflows Connectors.
- Four Ways to Call an API in Okta Workflows.
- Tutorial: Make API requests, part 1.
- Tutorial: Make API requests, part 2.
- Tutorial: Make API requests, part 3.
Get in touch
Email me if you have questions or sign up for our next office hours session.
Okta Workflows resources
๐ซ Get help from Workflows specialists during weekly community office hours.
๐บ Learn from Workflows videos.
๐ Ask questions on the Okta Workflows community forum.
๐๐ปโโ๏ธ Get help from the community: join the #okta-workflows channel on MacAdmins Slack.
Leave a comment