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 Conditions doe...
Power Automate
Answered

Trigger Conditions doesn't work

(0) ShareShare
ReportReport
Posted on by 16

Hi,

 

I have a sharepoint list which has a date field "Report Sent On" (yes....with spaces). Whenever an item is created, this field is not updated immediately. This field is kept blank until the report is sent. 

 

So whenever the field is updated a mail should be triggered with the attachment. I tried to update this formula "@not(equals(triggerBody()?['Report Sent on']?['Value'], null))" under Trigger conditions, but it goes into loop. I have derived this formula from various sources on the net... I m no master at this. Please correct if I am wrong.

 

Kindly help.

 

Regards,

Amit

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

    Hi @awairkar,

     

    I have never seen internal field names with spaces. Normally a space is replaced by _x0020_. It is very likely that the internal name is different. Can you double check in your column settings?

     

    Btw, you could also use an empty function. In your setup that would be something like this:

     

    @not(empty(triggerOutputs()?['body/ReportSenton']))

     

     

  • awairkar Profile Picture
    16 on at

    Hi @Expiscornovus ,

    I changed my field name to Reportsenton in the Sharepoint. I copy-pasted your formula in the Trigger Conditions, but again it is going into a loop after running.

     

    awairkar_0-1644574754439.png

     

  • Expiscornovus Profile Picture
    33,478 Most Valuable Professional on at

    Hi @awairkar,

     

    Can you share a screenshot of the rest of your flow setup?

     

    I have read the opening post again. Now realizing that for your requirement only a trigger condition would not be sufficient, sorry about that 😀

     

    Every item which has a report value would trigger this flow when it is being modified. The trigger condition doesn't now if the value has been changed. It only checks what the value is (or to rephrase that, that the trigger condition expression result is equal to true).

     

    Within the flow you could use a Get changes for an item or a file to check if the field value actually changed from null to a date value.

     

    Also you need to take into account that whenever you update the item itself within the flow you can trigger a new flow instance. Which would explain the loop.

  • awairkar Profile Picture
    16 on at

    Hi @Expiscornovus ,

     

    ohhh boy.... I thot a trigger could do the magic. Can u plz share a link or so which could b of a similar scenario? 

     

    Thanks in advance.

     

    Regards,

     

    Amit

     

  • Verified answer
    Expiscornovus Profile Picture
    33,478 Most Valuable Professional on at

    Hi @awairkar,

     

    Can you share a screenshot of your current configuration? This way I can adapt the example to your setup.

     

    Btw, I was talking about something like below.

    This example works with versioning (make sure that this is enabled on your list). In this example we will check if the value of the ReportSentOn field has changed. If so, you could execute the actions you want in the If Yes section.

     

    1. Add Get changes for an item or a file action to your flow setup. Use the following expression in Since field:

    add(int(triggerOutputs()?['body/{VersionNumber}']),-1)

     

    hascolumnchanged_reportsenton.png

    2. Add a Condition action. Use the Has Column Changed: Report Sent on dynamic content field and make sure it is equal to true.

     

    hascolumnchanged_reportsenton01.png

     

     

  • awairkar Profile Picture
    16 on at

    Sorry for the delay. It worked. Thanks for the guidance @Expiscornovus 

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…

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Automate

#1
trice602 Profile Picture

trice602 248 Super User 2026 Season 1

#2
David_MA Profile Picture

David_MA 207 Super User 2026 Season 1

#3
Power Platform 1919 Profile Picture

Power Platform 1919 101 Super User 2026 Season 1

Last 30 days Overall leaderboard