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

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

(0) ShareShare
ReportReport
Posted on by 254

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
    254 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

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

#2
Tomac Profile Picture

Tomac 405 Moderator

#3
abm abm Profile Picture

abm abm 252 Most Valuable Professional

Last 30 days Overall leaderboard