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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Trigger Condition When...
Power Automate
Answered

Trigger Condition When an item or a file is

(0) ShareShare
ReportReport
Posted on by 261

I am trying to set a trigger condition to initiate When an item or a file is modified step from a calculate columns based on number.

The flow works perfectly with the first two conditions, as soon as I add 

 

 

@greater(triggerOutputs()?['body/Tot_x0020_Days_x0020_C'], 7)

 

 

The flow generates an error:

 

 

InvalidTemplate. Unable to process template language expressions for trigger 'When_an_item_or_a_file_is_modified' at line '1' and column '20782': 'The template language function 'greater' expects two parameter of matching types. The function was invoked with values of type 'String' and 'Integer' that do not match.'.

 

 

I have also tried the trigger condition:

 

 

@greater(int(triggerOutputs()?['body/Tot_x0020_Days_x0020_C'], 7))

 

 

But I am getting the same error, I have tried to change the column to single text using the formula to return the number int he SharePoint library.

Screenshot (2).pngCapture1.JPG

 

Any ideas on how I can add this trigger?

 

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

    Hi @mtagliaferri,

     

    I have seen in a couple of blogs that calculated number fields are output as floats:

    https://sharepains.com/2018/09/03/microsoft-flow-handling-calculated-fields-in-microsoft-flow/

     

    Can you try this expression as a test instead?

    @greater(float(triggerOutputs()?['body/Tot_x0020_Days_x0020_C']), 7.0000000000000)

      

  • mtagliaferri Profile Picture
    261 on at

    That’s done the trick! Thanks!

  • BernDog Profile Picture
    2 on at

    I know how to add the filename that was modified or added in an expression of a trigger but how can you add the user/name of the individual who actually modifed or added the file as well?  The notification in MS Teams displays the owner of the flow but Id like the user to appear in the actual message, see ex below:

    BernDog_1-1611328132778.png

     

     

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Valantis Profile Picture

Valantis 641

#2
Vish WR Profile Picture

Vish WR 640

#3
Haque Profile Picture

Haque 495

Last 30 days Overall leaderboard