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 Apps / power apps asset check...
Power Apps
Answered

power apps asset checkout + ms flow

(0) ShareShare
ReportReport
Posted on by 5

I am using the asset checkout template on powerapps. I have added an approval flow to the reserve button. This is the code for that button 

 

SubmitForm(ReserveForm);AssetFlownew.Run(ReserveForm.LastSubmit.ReservedByEmail,ReserveForm.LastSubmit.ProductId,DateTo.SelectedDate,DateFrom.SelectedDate)

 

This is my date picker "Dateto" DateFrom" screenshot 1

When my flow kicks off the approval e-mail shows the default date only not date selected from form. I have searched the internet for hours and can't find a fix. I thought .selected would be the selected date on the form. The section on my flow request from powerapps the information and that's where the DateTo.SelectedDate,DateFrom.SelectedDate section comes in. But again it just shows default date on the datepicker not the actual selected date. 

 

Any help would be appreciated. 

 

1.PNG
2.PNG
flow.PNG
Categories:
  • Verified answer
    v-xida-msft Profile Picture
    Microsoft Employee on at

    Hi @glewis40 ,

    Do you mean that the selected date within the DatePicker control would be reset to the Default date when you pass the selected date from your app to your flow?

     

    Based on the issue that you mentioned, I think this issue may be related to the SubmitForm(ReserveForm) formula within your app.

    Actually, when the SubmitForm(ReserveForm) formula executes successfully, the ReserveForm (Edit form) would be reset, so the DateTo and DateFrom datepicker controls would be reset to default date value.

     

    As an alternative solution, please consider modify your formula as below:

    Set(DateToVar, DateTo.SelectedDate); /* <-- Store the selected date value within the two DatePicker controls into variables firstly */
    Set(DateFromVar, DateFrom.SelectedDate);
    SubmitForm(ReserveForm);
    AssetFlownew.Run(
    ReserveForm.LastSubmit.ReservedByEmail,
    ReserveForm.LastSubmit.ProductId,
    DateToVar,
    DateFromVar
    )

    Please consider take a try with above solution, then check if the issue is solved.

     

    Best regards,

  • glewis40 Profile Picture
    5 on at

    Thank you so much! This worked!!

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 354 Super User 2026 Season 2

#2
M Bilal Khan Profile Picture

M Bilal Khan 330

#3
Mohsin Ali Profile Picture

Mohsin Ali 232

Last 30 days Overall leaderboard