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 / Issue Getting .Selecte...
Power Apps
Unanswered

Issue Getting .SelectedDate to provide flow with Date

(0) ShareShare
ReportReport
Posted on by 4

Hello,

 

I seem to be having an issue getting the date from my date picker in to my flow run, the error looks like so,

JImC1_0-1684495924517.png

 

This is my formula - 

JImC1_1-1684496135420.png

 

Any Help would be greatly appreciated.

 

Categories:
  • WarrenBelz Profile Picture
    156,940 Most Valuable Professional on at

    Hi @JImC1 ,

    You need to send in this format

    UpdateHolidayHandler.Run(
     'Holiday ID Value'.Value,
     Text('Holiday Start Date Value'.SelectedDate, "yyyy-mm-dd"),
     Text('Holiday End Date Value'.SelectedDate, "yyyy-mm-dd"),
     'Leave Type Value'.Selected.Value,
     User .Email
    )

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

    MVP (Business Applications)   Visit my blog Practical Power Apps

  • JImC1 Profile Picture
    4 on at

    Hi Warren, 

     

    Unfortunately that leaves me with this?

     

    JImC1_0-1684504157868.png

     

    I have also tried changing the expected input type on the flow from date to text to try your solution.

     

  • mmollet Profile Picture
    3,187 on at

    Here is how my flow is set up. this is for an automated billing cycle that accounting uses every 2 weeks here. It gets all entries from a SP list between the two selected dates sent from Power Apps. Sent as datepicker times, saved as a string in the flow, then formatted to compare properly (day to day instead of time based).

     

    Screenshot 2023-05-19 at 9.05.30 AM.png

     

    Screenshot 2023-05-19 at 9.05.08 AM.png

     

    Screenshot 2023-05-19 at 9.04.07 AM.png

     

  • JImC1 Profile Picture
    4 on at

    hi @mmollet my issue seems to be getting the date in to Flow rather than in flow.

  • mmollet Profile Picture
    3,187 on at

    Here is some info about my setup and flow and maybe you can use it to see what is going wrong with your setup:

    In Power Apps:

    • My datepickers default date is set to Now() and is only a date picker. (not time picker etc)
    • I pass this date picker value into the flow using DatePickerName.SelectedDate

    In Power Automate:

    • I create 2 Initialize varaible steps both with String data types one for each date I send from Power Apps. 
    • These dates are then formatted to compare more easily: formatDateTime(item()?['Start'],'MM/dd/yyyy')

    Other than that there is nothing else that has to do with the dates in my flow or power app. The error you get seems to hint that the name may be from an old deleted control. Have you checked/tried:

    • Make sure that name is the same as the datepickers name.
    • Make sure that the flow is actually asking for the date and is expecting it. (ask in powerapps for value in flow)
    • Remove the flow from your app, relink it, then try to make a flow call again after that. 
    • Try making a new flow that has one step where it just asks for a date (of type string still). Import this flow into your app and then just try to run it. DateTestFlow.Run(DatePicker1_1.SelectedDate). Once you run this flow you should be able to go into that flow's run history and then click on the run you just did. This sould allow you to see the value saved by the variable you tried to send the time to from power apps. This will be a good test to make sure that it is working on its own.

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 248 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 192 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 135

Last 30 days Overall leaderboard