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 / Power Automate Must cl...
Power Automate
Unanswered

Power Automate Must click Datepicker

(0) ShareShare
ReportReport
Posted on by 15

I have a similar situation as this thread where I need to click on the dates in the calendar for me to click apply and move forward. 

I tried using javascript to input the dates into the fields automatically but it does not work for me. Once I press tab or click out of the calendar, It automatically erases itself from the field. Once I click apply, I get an error message.

 

https://powerusers.microsoft.com/t5/Power-Automate-Desktop/How-to-Click-Datepicker-It-is-a-situation-where-you-cannot-enter/td-p/1614486

 

The script I used for java script.

 

;Fill Dates

const input = document.querySelectorAll('.fds-field-input')[1];

if (input) {

  input.value = '05/07/2022';

} else {

  console.error('Input element with class "fds-field-input" not found.');

}

 

;Fill Dates

const input = document.querySelectorAll('.fds-field-input')[2];

if (input) {

  input.value = '05/09/2022';

} else {

  console.error('Input element with class "fds-field-input" not found.');

}

 

Error message I received when pressing apply, without clicking outside of the calendar.

eg-clickstream.js:1 EgClickstream - Error: publish failed due to invalid payload: {"schema_name":"DomainEvent","request":{"request_url": URL},"timestamps":{"event_origination_timestamp":1686887788883},"experience":{"experience_type":"Web","viewport_width":1076,"viewport_height":1298,"resolution_width":1536.0000228881836,"resolution_height":960.0000143051147}}

 

jon2249_0-1687149404403.png

 

Payload of graphql when I click apply by clicking on certain dates:

 

query getReservationsBySearchCriteria {reservationSearchV2(input: {propertyId: xxxxxxxxx, booked: true, bookingItemId: null, canceled: false, confirmationNumber: null, confirmed: true, startDate: "2023-04-01", endDate: "2023-04-03", dateType: "checkIn", evc: true, : true, timezoneOffset: "-04:00", firstName: .........

 

I tried changing the Javascript to input the date in that format of Year-Month-Day and it still did not work.

 

I am a bit loss on how to proceed with this particular calendar date picker. Anyone have any experience with this in the past?

 

I have the same question (0)
  • OkanMTL Profile Picture
    703 Super User 2024 Season 1 on at

    Invalid payload says the way you input your data might be wrong, that can be the format or something else. have you tried sending the values as hardware input?

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 Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Valantis Profile Picture

Valantis 411

#2
David_MA Profile Picture

David_MA 300 Super User 2026 Season 1

#3
Vish WR Profile Picture

Vish WR 291

Last 30 days Overall leaderboard