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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Automate
Unanswered

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,189 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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 522 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 364 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard