Skip to main content

Notifications

Community site session details

Community site session details

Session Id : b/THIFrf9HK0M3igYy94/R
Power Automate - Building Flows
Answered

what's the difference between triggerOutputs() and triggerBody() an they be used interchanabily?

Like (0) ShareShare
ReportReport
Posted on 15 Sep 2020 12:34:02 by 17

Hi,

I am working on flow where I am limiting the number of runs of a flow for that I have added a trigger condition

equals(triggerOutputs()?['body/Editor/Email'],'username@domain.com')

and other flow

equals(triggerBody()?['body/Editor/Email'],'username@domain.com')



this is working in both the cases so I am confused what's the difference between the triggerOutputs() and triggerBody() and which one should be used?
  • Verified answer
    Ana Almeida Profile Picture
    on 22 Sep 2020 at 14:53:01
    Re: what's the difference between triggerOutputs() and triggerBody() an they be used interchanabily?

    Hello, 

    In resume triggerBody() is used when we want to fetch attributes from the body of the trigger and triggerOutputs() is used whenever you need to access anything from within the body as well as some info from the header as well as shown. 

    This article explain the differences and give an example that will help you to understand better: https://d365demystified.com/2020/09/06/using-triggerbody-triggeroutput-to-read-cds-trigger-metadata-attributes-in-a-flow-power-automate/ 

     

    Best regards,

    Ana Almeida | Microsoft Power Platform Support Engineer

  • CFernandes Profile Picture
    8,295 Most Valuable Professional on 15 Sep 2020 at 12:46:25
    Re: what's the difference between triggerOutputs() and triggerBody() an they be used interchanabily?

    @SH3R I am not 100% sure but from the top of head triggerBody()?[‘UserEmail’]  and for the triggerOutputs()?[‘body/UserEmail’] and it is just related to syntax difference.

     

    I read an article around this topic a sometime back. I will hunt it down for you from my LinkedIn feed. 

     

    If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

     

     

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

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Leaderboard > Power Automate - Building Flows

#1
David_MA Profile Picture

David_MA 292 Super User 2025 Season 1

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 245 Super User 2025 Season 1

#3
stampcoin Profile Picture

stampcoin 212

Overall leaderboard
Loading started