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 / Send a message to say ...
Power Automate
Answered

Send a message to say how long a flow how long the flow took to run

(0) ShareShare
ReportReport
Posted on by 262

Hi All,

 

Is it possible to add a message at the end of a flow to say the duration time of the flow? 

For example the message might say,

 " X Flow took 3 mins to complete"

Categories:
I have the same question (0)
  • Verified answer
    annetoal Profile Picture
    1,934 Moderator on at

    The simplest way might be to store the time at the beginning and again at end of the Flow, then subtract the finish time from the start time. Here's an example that calculates the tenths of a second between start and end of execution and then sends a mail:

    annetoal_1-1685050610091.png

     

     

    I used compose actions to illustrate the basic concepts. You might find other actions are better choices in your Flow.

    The Start and Finish actions:

     

     

    ticks(utcNow())

     

     

    The Compose action represents where you would put all your Flow steps.

    The tenths of a second compose:

     

     

    div(sub(outputs('finish'),outputs('start')),1000000)

     

     

    Then the Send an email action takes the output from the tenths of a second compose action

     

    workflow()?['tags']?['flowDisplayName'] took outputs('tenths_of_a_second') tenths of a second to execute.

     

    and puts it into a mail. 

    I used tenths of a second here because this is a short Flow and it's not going to take long to execute. You might find other intervals more suitable.

    To learn how to calculate other intervals (day, week, month, etc.), read this:

    Solved: how to get difference between two dates in flow - Power Platform Community (microsoft.com)

     

    If this helped, please mark it as a Solution.

    Anne

  • Skybluekid Profile Picture
    262 on at

    Thank you @annetoal .  This very useful

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!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 250 Super User 2026 Season 1

#2
Expiscornovus Profile Picture

Expiscornovus 222 Most Valuable Professional

#3
Haque Profile Picture

Haque 174

Last 30 days Overall leaderboard