Showing results for 
Search instead for 
Did you mean: 
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.



   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






Yoshihiro Kawabata

Super User
Super User

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.


Helpful resources

UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

M365 768x460.jpg

Microsoft 365 Collaboration Conference | December 7–9, 2021

Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.

Users online (2,359)