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 / Dynamic date input is ...
Power Apps
Unanswered

Dynamic date input is not working.

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hi,
I'm currently facing a confusing problem with my canvas app.

The following code is responsible to fetch available rooms for urgent meetings so you can book them.

Screenshot 2023-03-30 122400.png

As you can see the code accepts the highlighted date syntax.

Once I execute this It performs the operation perfectly and fetches the right data:

Screenshot 2023-03-30 122503.png

However, these are obviously static inputs with the data type of string.

So naturally I would like the input to be dynamic.

The user does not have to input a date nor time since he's in a rush.

I would like to fetch rooms available starting from the moment he clicks on "meet now" button until the next 60 or 120 minutes.

So, I used the following:

Screenshot 2023-03-30 123034.png

 

See the red line, the exact acceptable format with the exact data type so naturally this should also fetch Data. 

But nope I get this instead:

Screenshot 2023-03-30 123217.png

 

Empty gallery with no errors whatsoever.
Would appreciate some help.

 

Categories:
  • Community Power Platform Member Profile Picture
    Microsoft Employee on at
    Set(
     StartDateTimeUTC,
     Text(Now(),DateTimeFormat.UTC)
    );
    Set(
     EndDateTimeUTC,
     Text(DateAdd(Now(),2,TimeUnit.Hours),DateTimeFormat.UTC)
    );
    ClearCollect(
     AvailableRooms,
     Office365Outlook.FindMeetingTimes(
     {
     RequiredAttendees: Concat(
     Office365Outlook.GetRoomsInRoomList(SelectedLocation).value,
     Address & ";"
     ),
     IsOrganizerOptional: true,
     Start: StartDateTimeUTC,
     End: EndDateTimeUTC,
     MeetingDuration: DateDiff(
     StartDateTimeUTC,
     EndDateTimeUTC,
     TimeUnit.Minutes
     ),
     MinimumAttendeePercentage: "1",
     ActivityDomain: "Unrestricted"
     }
     )
    );
    ClearCollect(
     AvailableRoomsFree,
     Concat(
     Filter(
     First(First(AvailableRooms).MeetingTimeSuggestions).AttendeeAvailability,
     Availability = "Free"
     ),
     Attendee.EmailAddress.Address,
     ","
     )
    );
    ClearCollect(
     AvailableRoomEmailName,
     AddColumns(
     RenameColumns(
     ForAll(
     Split(
     First(AvailableRoomsFree).Value,
     ","
     ),
     {Result: ThisRecord.Value}
     ),
     "Result",
     "Email"
     ),
     "Name",
     LookUp(
     Office365Outlook.GetRoomsInRoomList(SelectedLocation).value,
     Email = Address
     ).Name
     )
    ); Navigate(testpage)
    ;Navigate(AvailableRoomsPage,ScreenTransition.UnCover)

    This is what the code looks like if anyone wondering.
    Selected location is a dynamic email address with data type string.

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

#2
M Bilal Khan Profile Picture

M Bilal Khan 325

#3
Mohsin Ali Profile Picture

Mohsin Ali 232

Last 30 days Overall leaderboard