Okta Workflows Community Office Hours Questions and Answers (November 21, 2024)

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.

Validating JSON with the JSON – Parse card.

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

Invalid JSON 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.

Validating JSON with the Object – Construct card.

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

Testing the Object – Construct card.

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.

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