Skip to main content

Notifications

Community site session details

Community site session details

Session Id : XGQEHfGoFCjvfy4iFy/Riw
Power Apps - Power Apps Pro Dev & ISV
Answered

Date return issue in Power Automate

Like (0) ShareShare
ReportReport
Posted on 11 Dec 2024 19:19:55 by 8
Hi,
 
I am facing an issue with getting a timestamp from Power Automate to show up on my PowerApps Label
 
I have a label and a button on Power Apps.
On click of the button, it calls a Power Automate Flow. I have added a Respond to PowerApps action at the end and have set the Output type to Date whose value is set as utcnow().
 
When I test run the flow it does the task and generates the date successfully as i can see in the output however it does not seem to be passing it back to the PowerApps.
 
I am not passing any parameter to power Automate while I am calling it to run however only want the data back from it after it finishes running.
 
OnSelect property of the button is set as follows - Set(LastupdatedTime, Myflow.Run())- As you can see there is no parameter being passed to Power Automate
The text property of the label is set as LastupdatedTime
 
The data type of LastupdatedTime was showing as Boolean and so does the text property of the label so I modified it to as follows to convert it to Text
Set(LastupdatedTime, Text(Myflow.Run()))
 
After i run the flow from Power Apps it seems to run successfully however the text label shows as False and not the timestamp coming from Power Automate.
I am not even sure if any value is being passed back to Power Apps at all, though the flow is running successfully, either alone or by click of the button.
 
Any help or guidance would be appreciated.
 
  • Emkay74 Profile Picture
    8 on 12 Dec 2024 at 17:26:40
    Date return issue in Power Automate
    It appears that the Power Automate was referencing some old stuff from the cache so I deleted and initialised a variable to store the date in a particular format and I referenced that variable in the output of a fresh Respond to PiwerApps.
     
    Then In the text property of my label i used my variable that was capturing the output of my flow alongwith the output of my power Automate like LastupdatedTime.Runtimestamp and it worked
     
    Runtimestamp was the output variable in power Automate and 
    LastupdatedTime was the variable I set in PowerApps to capture the result of my flow.
     
    Thanks a lot !
  • Verified answer
    Pstork1 Profile Picture
    66,015 Most Valuable Professional on 12 Dec 2024 at 12:31:49
    Date return issue in Power Automate
    ReturnDate is what I called the property in my sample screenshot. Can you provide a screenshot of the Respond to Power Apps action you are using? I suspect you aren't referencing the right property name.

    ----------------------------------------------------------------------------------
    If this Post helped you, please click "Does this answer your question" and give it a like to help others in the community find the answer too!

    Paul Papanek Stork, MVP
    Blog: https://www.dontpapanic.com/blog
     
  • Emkay74 Profile Picture
    8 on 12 Dec 2024 at 10:03:27
    Date return issue in Power Automate
    Do i Put the following in the Text property of the label where I want to show the last update time?
     
    Text(LastupdatedTime.ReturnDate)
    I did that and it still doesn't show the value passed from Power Automate.
     
    I also tried writing only  LastupdatedTime.ReturnDate in the text property of the Label and it still doesn't work
  • Suggested answer
    Pstork1 Profile Picture
    66,015 Most Valuable Professional on 11 Dec 2024 at 20:13:15
    Date return issue in Power Automate
    When you pass a value back to Power Apps in a Respond to Power Apps you give the value you are passing a name.  The actual value will show up as a property of that name in the variable where you capture it.  So if your Respond to Powerapps was configured like this screenshot
    And you used the following as the OnSelect
    Set(LastupdatedTime, Myflow.Run())
    Then the value would be
     
    Text(LastupdatedTime.ReturnDate)

    ----------------------------------------------------------------------------------
    If this Post helped you, please click "Does this answer your question" and give it a like to help others in the community find the answer too!

    Paul Papanek Stork, MVP
    Blog: https://www.dontpapanic.com/blog
     

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

Understanding Microsoft Agents - Introductory Session

Confused about how agents work across the Microsoft ecosystem? Register today!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,702 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 66,015 Most Valuable Professional

Leaderboard
Loading started
Loading complete