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 Platform Community / Forums / Power Automate / Trigger condition with...
Power Automate
Unanswered

Trigger condition with a not() is well not working!

(0) ShareShare
ReportReport
Posted on by 636

 

I want  to add trigger condition to  flow that resides with a solution, in order to stop it retriggering .  

 

I have added my expression to a compose action it there are not issues. When I add the same expression with the @ prefix to the trigger condition it errors

 

approval with trigger conditon.PNG

 

here is he expression

 

@not(equals(triggerOutputs()?['body/TestStatus/Value'], 'Terminated'))

 

By are process of elimination it appears the not() expression is the issue , even in this simple test which also fails with the same error .. er am I missing something here?

 

When an item or file is modified.PNG

 

Categories:
I have the same question (0)
  • annajhaveri Profile Picture
    8,531 Most Valuable Professional on at

    @westerdaled  what is the data type of the Test Status column? There seems to be some issue with the expression, it should be similar to below expression

    @not(equals(triggerbody()?['TestStatus']?['Value'],'statusvalue'))
    
    
  • westerdaled Profile Picture
    636 on at

     @annajhaveri  thanks for your reply it is a SharePoint choice field . I will give your sugestion a try shortly.

     

    I placed my orignal expression a Compose and to got no  issues .  Also it doesn't even work with string comparison which concerned me.

  • westerdaled Profile Picture
    636 on at

    @annajhaveri 

     

    I have an update for you, and I think I have found a bug in Power Automates which I guess we might to push up the chain to the dev team.

     

    Just to recap , in my  Modified or Created Trigger flow, I don't want it to run if a choice column value shows 'Terminated'

     

    In my Trigger Condition I have 

     

     

     

    @not(equals(triggerOutputs()?['body/TestStatus/Value'], 'Terminated'))

     

     

    They syntax is fine, as proven when I replicate this a compose action. However, the flow fails with 

     

    Trigger Condition Terminate is not liked.PNG

     

    Now I change my test string to something else

     

     

     

    @not(equals(triggerOutputs()?['body/TestStatus/Value'], 'GoneFishing'))

     

     

     

    Flow runs fine: Go figure🙄

     

    In my case I will changing  'Terminated' to 'Closed' and see if the trigger condition doesn't get upset about that. 

  • Verified answer
    annajhaveri Profile Picture
    8,531 Most Valuable Professional on at

    @westerdaled  i did try to use your trigger condition which compares Terminated value and it works. Could you try creating a new flow and see if it has same issue?

  • westerdaled Profile Picture
    636 on at

    Ok I have now tested 'Closed' which works but I will create another flow outside my solution and repeat with ' Terminated' ..  Then I better get on with my remaining bug fixes.😁

  • westerdaled Profile Picture
    636 on at

    @annajhaveri 

     

    I now know that condition with  'Terminated' which is an issue only when I try to Test my automated flow in the edit mode.

     

    Test the trigger condtion will fail with Terminated string.PNG

     

    I don't get the issue when I simply change one the list item property values or change the condition to 'Closed' in the edit mode above .. So there is a minor bug but not a show  stopper as I first thought. 

     

    The Power Automate is now in production and I have tested it with a 'Terminate'

    Thanks for helping me with this issue.

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 523 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 406 Moderator

#3
abm abm Profile Picture

abm abm 245 Most Valuable Professional

Last 30 days Overall leaderboard