web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Automate
Answered

Condition greyed out

(0) ShareShare
ReportReport
Posted on by 13

Good day to all, appreciate your help on below issue:
I have this flow created that is triggered when a new email arrives in a shared mailbox from specific email addresses

The flow captures a specific text string from the email subject and checks whether it exists in a sharepoint list 

If it does, then it captures the email address from the sharepoint list and forwards the initial email to the address from SP

 

apa006_2-1700744115296.png

The filter query has been tested and works properly with the expression used as per 'Format Data by examples' option

 

trim(split(triggerOutputs()?['body/subject'], ':')[sub(length(split(triggerOutputs()?['body/subject'], ':')), 2)])
 

, however the last step below is greyed out and despite the flow appears to be executed successfully, there is no dispatch of the email

 

apa006_3-1700744298494.png

 

Here below, the output from a test run of the flow. The highlighted part shows that indeed the correct text string has been captured, but the condition seems not to run

apa006_4-1700746090258.png

apa006_5-1700746160112.png

 

Any recommendation/suggestion on how to resolve would be greatly appreciated.

 

Best regards, Than

Categories:
I have the same question (0)
  • Verified answer
    Expiscornovus Profile Picture
    33,851 Most Valuable Professional on at

    Hi @apa006,

     

    With your current setup the apply to each will loop through each item it found in the value property.

     

    If the get items returns no value items, the apply to each will not have anything to loop through and it will skip all actions within the apply to each action. It looks like that happened in this instance.

     

    You can double check this by clicking on the Click to download link in the Outputs section.

     

    If the value property returns '[]' it means it has not found any matching items.

  • apa006 Profile Picture
    13 on at

    Thanks @Expiscornovus ! Your suggestion was eye-opening to fix the threshold in 'get items'. Once done, it worked

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Vish WR Profile Picture

Vish WR 784

#2
Valantis Profile Picture

Valantis 581

#3
Haque Profile Picture

Haque 545

Last 30 days Overall leaderboard