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 / How to see the result ...
Power Automate
Unanswered

How to see the result of an expression or formula in a flow?

(1) ShareShare
ReportReport
Posted on by 386

This may be a 100% noob question. I spent the better part of an hour coming up with the below formula to allow me to test the time and only further process the flow if it is after 4pm (or 16 hours)

 

int(substring(convertFromUtc(utcNow(),'Pacific Standard Time'),11,2))

The issue is it took me a long time to figure out why it was failing to work properly. I was guessing what the convertFromUtc() was returning based on the help pages, then figuring out what the substring() was returning because I finally figured out it starts at 0 and not 1, etc.

 

I could have saved myself about 30min easily if there was a box or a way to just key that formula in and press {ENTER} and get a result to see if it is what I need. Instead I had to keep testing the flow and then looking at the error messages. Very time consuming. Is there an action, or something that can help, or is this in the UI somehwere and I just don't know it?

Categories:
I have the same question (0)
  • RezaDorrani Profile Picture
    12,145 on at

    Hi @EdHansberry 

     

    expressions are evaluated at run time and hence you can only say the results after the Flow has run

     

    Regards,

    Reza Dorrani

     

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly

  • Pstork1 Profile Picture
    69,024 Most Valuable Professional on at

    To add to what @RezaDorrani is saying.  If you look at the run history for a Flow you can normally open up an action and see the actual input and output values that the action is using.  If the action fails then sometimes you can't see the values.  In that case I use a variable to expose the value just prior to the action that is failing.  You do have to run the flow to get the values to populate, but after the run you can see the actual value results from a formula

  • EdHansberry Profile Picture
    386 on at

    How would I use a variable to do that? For example, in building my formula, I would want to see what:

    convertFromUtc(utcNow(),'Pacific Standard Time')

    generated, then I could work up to 

    int(substring(convertFromUtc(utcNow(),'Pacific Standard Time'),11,2))

    step by step.

     

    Ideally I'd like a msgbox action similar to msgbox in VBA that lets me just print to screen the result of something in testing.

  • Pstork1 Profile Picture
    69,024 Most Valuable Professional on at

    Flow doesn't have a UI, so there is no message box availabe.  You have to generate a variable and initialize it for the formula that you want.  Then run the Flow and you can examine the variable to see the value.  The variable will probably be a string so I would use this for your test formula.

    formatformatDateTime(convertFromUtc(utcNow(),'Pacific Standard Time'),'dd/MM/yyyy HH:mm')

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