Skip to main content

Search

array variable

Answered

Comments

2 comments

  • Christof

    Hi Andrew

    You're on the right track I think.

    As soon you have the unique values in an array like this (hardcoded in this sample):

    You can loop on these with the Loop action:

    Configure another Get items action to query the list with the current unique value from loop as filter:

    [[@Actions.Loop_apply_to_each.CurrentItem]]
    Returns for loops first iteration: "Active"


    The result of this Get items action can be use for another loop or send an email with the the returned items in an HTML table or like in my example Show message with all titles of the items.

    Config:

    [[@Actions.Loop_apply_to_each.CurrentItem]]: 
    [[=[[@Actions.Get_items.Items]].map(act => act.Title).join(', ')]]


    Result:

    0
  • Andrew Kirby

    That's super helpful thank you! The main problem was that I hadn't realised the format that the array variable had to be in: ["example1","example2"]

    1

Please sign in to leave a comment.