cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
yoshihirok
Level 10

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

Helpful resources

Announcements
thirdimage

Power Automate Community User Group Member Badge

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

firstImage

Incoming: New and improved badges!

We've given our badges an overhaul and also added some brand new ones!

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

sixthImage

Power Platform World Tour

Find out where you can attend!

seventhimage

Webinars & Video Gallery

Watch & learn from the Power Automate Community Video Gallery!

Top Kudoed Authors (Last 30 Days)
Users online (6,754)