<iframe src="https://www.googletagmanager.com/ns.html?id=GTM-M74D8PB" height="0" width="0" style="display:none;visibility:hidden">
Loading
Skip to NavigationSkip to Main Content
0D54z00007c8WMJCA2Okta Classic EngineWorkflowsAnswered2022-05-02T19:09:27.000Z2022-04-29T18:20:00.000Z2022-05-02T19:09:27.000Z

JeremyJ.88632 (Customer) asked a question.

Workflows, Concat from For Each Helper

I have a workflow that runs a For Each on a table. In the helper flow, I want to grab certain information from the row and turn it into a text string, but I want to concat that text string back to the parent flow so I have one text object that contains all of information.

For example:

Table row has First Name, Last Name, Status

John Smith Active

Jane Doe Inactive

 

Creates a single text object that says:

John Smith is Active, Jane Doe is Inactive

 

 


  • flaviu.vrinceanu1.5628408972654734E12 (Customer Success Service Delivery)

    Hi @JeremyJ.88632 (Customer)​,

     

    Thank you for posting on the Okta community page!

     

    I have done some research and you might be able to achieve this by following the bellow steps:

    1. You will need to use a LIST-REDUCE card to pass in the values of First, Last, Status and to pass a blank Memo field.
    2. A concatenate card or a compose one, will need to be used to put the fields together as described by you.
    3. With the concatenate card, you can pass the first item in the Memo field, the second one which will be comma and the third being the formatted text.
    4. After the above is done, you will have to pass the concatenated text to a RETURN card and have the OUTPUT of the LIST-REDUCE card be the same as the RETURN card in the helper flow.

     

    Additionally, please keep in mind that tables are only for temporary storage and they are not to be used as a database.

     

    I hope the above information is helpful!

    Expand Post
  • TimL.58332 (Workflows)

    As Flaviu mentioned the List Reduce card is what you will need to leverage to meet this goal. The memo field as text/string does require a default value within the List Reduce. How I work-around this is to utilize some "unique" value could be a GUID etc and I just strip it out with replace after the List Reduce card is completed.

  • TimL.58332 (Workflows)

    @Jeremy Jirik

     

    I've put together a sample flow that should get you started. It demonstrates reduce usage with text/strings and some other text manipulation.

     

    Next to a folder in Workflows click the "gear" icon and import. Will be 2 flows.

    Expand Post
This question is closed.
Loading
Workflows, Concat from For Each Helper