cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Memorable Member
Memorable Member

Tips: Get a item from array by Filter,Compose, Workflow Definition Language

I want to share a tips for get a item from the arrary.

This tips use Filter action, Compose action with Workflow Definition Language in flow.

 

Image:

   Source string for array is 'Hello awesome #MicrosoftFlow'.

   Get a word starts with #.

   Result item is '#MicrosoftFlow'.

 

Sample flow:

   1. Trigger - Button

   2. Action - Compose

      Name: Source

      Inputs: Hello my #MicrosoftFlow

   3. Action - Compose

      Name: Array

      Inputs: "@split(outputs('Source'), ' ')

   4. Filter

      Name: Filter

      From: Output in Array.

      Conditions: "@startsWith(item(), '#')"

   5. Action - Compose

      Name: ResultItem

     Inputs: "@if(greater(length(outputs('Filter').body),0), first(outputs('Filter').body), '')"

   6. Action - Send a push notification

     Name: Send a push notification

     Text: Output - aItem

1.png

 

 

 

Regards,

Yoshihiro Kawabata

1 REPLY 1
Highlighted
Super User II
Super User II

Re: Tips: Get a item from array by Filter,Compose, Workflow Definition Language

HI @yoshihirok 

 

I just stumbled on your request. You've been waiting a while for a reply.

Were you able to solve it? Can you post the solution so that we can all learn from it?

If you still need help, please let me know what changed.

If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

Cheers
Manuel

Helpful resources

Announcements
firstImage

Super User Program Update

Three Super User rank tiers have been launched!

firstImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

firstImage

New & Improved Power Automate Community Cookbook

We've updated and improved the layout and uploading format of the Power Automate Cookbook!

thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

Users online (7,818)