Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Using Flows
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

  • apa006 Profile Picture
    13 on at
    Re: Condition greyed out

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

  • Verified answer
    Expiscornovus Profile Picture
    31,641 Most Valuable Professional on at
    Re: Condition greyed out

    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.

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,660 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,999 Most Valuable Professional

Leaderboard

Featured topics

Restore a deleted flow