Skip to main content

Notifications

Power Automate - General Discussion
Answered

infinite loop even though I added a condition.

(0) ShareShare
ReportReport
Posted on by 633

Hello, 

 

Could you do me a favor? 

My scenario is

Send to employee is yes (choice column in SP), the email will be sent to the employee. 

 

I added this below to the setting trigger of the 'when an item is created or modified' 

@equals(triggerOutputs()?['body/SendtoEmployee_x003f_'], 'Yes')

 

happyyear_0-1688411281466.png

This is my workflow. But there is an infinite loop. Could you do me a favor? 

 

  • SudeepGhatakNZ Profile Picture
    SudeepGhatakNZ 14,231 on at
    Re: infinite loop even though I added a condition.

    That trigger condition you have provided means the flow will trigger only email of the person modifying the list is SPconnectionaccount@company.com

  • happyyear Profile Picture
    happyyear 633 on at
    Re: infinite loop even though I added a condition.

    Hello, 

    @SudeepGhatakNZ 

    I got it. 

     

    Just in case, 

    1. @Anonymous(equals(triggerOutputs()?['body/Editor/Email'],'SPconnectionaccount@company.com'))

    Does this one to enter the setting trigger condition sometimes not work? 

     

  • Verified answer
    SudeepGhatakNZ Profile Picture
    SudeepGhatakNZ 14,231 on at
    Re: infinite loop even though I added a condition.

    No what I meant was just test if your flow triggers when the SendtoEmployee_x003f_field is "No".

    If it doesn't, then you can safely disregard the warning

     

  • happyyear Profile Picture
    happyyear 633 on at
    Re: infinite loop even though I added a condition.

    @SudeepGhatakNZ 

    Thank you for your help.

    Does it mean I need to create one column and add a toggle as a condition to the SP list? I am sorry that I didn't understand correctly. 

  • Verified answer
    SudeepGhatakNZ Profile Picture
    SudeepGhatakNZ 14,231 on at
    Re: infinite loop even though I added a condition.

    @happyyear 

    The warning message may persist because the flow engine may not have sufficient information to determine the validity of the trigger condition. To verify the functionality of your flow, you can conduct a test by toggling the field value between "Yes" and "No" to observe if the trigger is activated only when there is a "Yes". If the trigger condition is functioning correctly, you can confidently disregard the error message and proceed with your workflow.

     

     

  • happyyear Profile Picture
    happyyear 633 on at
    Re: infinite loop even though I added a condition.

    @SudeepGhatakNZ 

    Thank you for helping. 

    The condition is if the column "send to employee' is yes. (that is a choice column in SP) 

     

    Should I use "@not(equals(triggerOutputs()?['body/Editor/Email'],'SPconnectionaccount@company.com'))" for the setting in the item is created and modified? I did, but still I saw the warning " an infinite loop"

  • SudeepGhatakNZ Profile Picture
    SudeepGhatakNZ 14,231 on at
    Re: infinite loop even though I added a condition.

    What is the condition that you have?

     

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

Microsoft Kickstarter Events…

Register for Microsoft Kickstarter Events…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 145,422

#2
RandyHayes Profile Picture

RandyHayes 76,287

#3
Pstork1 Profile Picture

Pstork1 64,711

Leaderboard