DEV Community

Max Katz for Okta Workflows

Posted on • Originally published at maxkatz.net on

Okta Workflows Tips #2

Welcome to another Okta Workflows Tips post. Read all other tips.

In this blog post I will share tips on using the Workflows Compose card. The Compose card is widely used card to create free form text.

Compose card

Compose card

It might seem like a plain text card, but it packs useful capabilities.

Composing text with data from other cards

You are not limited to only static text in the Compose cards. You can map and pass data from cards that come before it:

Compose card with data from previous card

Compose card with data from previous card

Creating HTML content

In addition to mapping data from other cards, you can also use HTML tags in the card. This can be useful when sending an HTML email:

Creating an HTML email with Compose card

Creating an HTML email with Compose card

Changing card output name

The default output name for a Compose card is output. Sometimes itโ€™s a good idea to give it a different name so it matches the actual output it returns:

Changing Compose card output name

Changing Compose card output name

Place the cursor inside the output area, click Aa > Customize to change the output name to something that makes more sense for your flow

Customizing the Compose card

Customizing the Compose card

Creating variables

Ok, this one is maybe not a tip or best practice but useful in some situations. You can use the Compose card to create a variable-like output for another card that expects a URL for example:

Creating variables with Compose card

Creating variables with Compose card

You need to be extra careful so you donโ€™t introduce an extra white space or a carriage return in the text. It might be challenging to debug such issue. As an alternative, consider using Object Construct or Text Concatenate.

Well, thatโ€™s for now. More tips are coming soon. If you have any tips or tricks โ€“ please let me know.

Build your first automation with these step-by-step tutorials.

Top comments (0)