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 II
Super User II

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

MPA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

V3_PVA CAmpaign Carousel.png

Community Challenge - Giveaways!

Participate in the Power Virtual Agents Community Challenge

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

R2 (Green) 768 x 460px.png

Microsoft Dynamics 365 & Power Platform User Professionals

DynamicsCon is a FREE, 4 half-day virtual learning experience for 11,000+ Microsoft Business Application users and professionals.

Users online (848)