Monday, May 20, 2024
HomeJavaEasy methods to Iterate Over Gadgets and Create a New Checklist (or...

Easy methods to Iterate Over Gadgets and Create a New Checklist (or Easy methods to Use the Checklist – Map Card) – Java Code Geeks


Okta Workflows how-to guides are questions and solutions from weekly group workplace hours, MacAdmins Workflows Slack channel, and different locations. Learn all different how-to guides

On to the query. 

Easy methods to take information checklist, modify every file in a listing, and proceed to make use of the brand new checklist within the movement?

You could have a listing of customers and want a brand new checklist the place every consumer is listed as lastname.firstname. Maybe you want this identify format to create an account in one other system.

To begin, that is the primary movement:

Utilizing Checklist – Map card
  • The primary card, Okta – Checklist Group Members, will get all members (customers) from the required group
  • The Checklist – Map card, calls a helper movement to course of the consumer checklist. Your entire file (Consumer) is handed to the helper movement. And, it returns a listing (new checklist) that you should use in the remainder of the movement
    • That is totally different from the For Every motion that additionally processes a listing, however doesn’t return a listing again)
  • On this instance, the Circulate Management – Assign card is used to show the returned checklist. It’s used to indicate that you’ve a listing that you should use in the remainder of the movement

That is the helper movement:

Helper movement that returns a worth
  • Within the first Helper Circulate card, the enter is the present file (Consumer)
  • The Get A number of card retrieves the First Identify and the Final Identify of the present consumer. You can too retrieve different fields
  • The Textual content Concatenate card, concatenates the First Identify, a interval (.) and the Final Identify
  • The Circulate Management – Return card, receives a brand new identify within the lastname.firstname format and provides it to the brand new checklist. As soon as all of the objects have been processed, the Checklist – Map card (important movement) returns a brand new checklist. This new checklist is now accessible in the primary movement

This screenshot reveals one run of the helper movement the place it returns one identify within the lastname.firstname format:

Helper movement run

This screenshot reveals the primary movement execution:

Important movement run

The brand new checklist (from Assign card):

The brand new checklist with final.first format

If you’re accustomed to the Checklist – For Every card, it processes checklist merchandise however doesn’t return a worth again to the primary movement. The Checklist – Map card, processes a listing of things and returns a brand new checklist to the primary movement.

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Most Popular

Recent Comments