How to Iterate Over Items and Create a New List (or How to Use the List – Map Card)

Okta Workflows how-to guides are questions and answers from weekly community office hours, MacAdmins Workflows Slack channel, and other places. Read all other how-to guides

On to the question. 

How to take data list, modify each record in a list, and continue to use the new list in the flow?

You have a list of users and need a new list where each user is listed as lastname.firstname. Perhaps you need this name format to create an account in another system.

To start, this is the main flow:

Using List – Map card

This is the helper flow:

Helper flow that returns a value

This screenshot shows one run of the helper flow where it returns one name in the lastname.firstname format:

Helper flow run

This screenshot shows the main flow execution:

Main flow run

The new list (from Assign card):

The new list with last.first format

If you are familiar with the List – For Each card, it processes list item but doesn’t return a value back to the main flow. The List – Map card, processes a list of items and returns a new list to the main flow.

Published on Java Code Geeks with permission by Max Katz , partner at our JCG program. See the original article here: How to Iterate Over Items and Create a New List (or How to Use the List – Map Card)

Opinions expressed by Java Code Geeks contributors are their own.

Exit mobile version