cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
whabicht
Level: Powered On

Meeting Capture FollowupTimesScreen: 2 date pickers to select Start and End

I'd like to search for Follow-up meeting times using a range (rather than a day at a time). This would enable my team to search for possible meeting dates over the next month, for example.

I'm thinking two date pickers, but I'm really struggling to get it right. 

Something that could look like this:
Ideal Setup.png

 

Here's the code options to adjust:

OnStart

 

Concurrent(Set(MyCalendarID,LookUp(Office365.CalendarGetTables().value,DisplayName=LookUp(CalendarLocalizedLabel,Value=DisplayName).Value).Name);ClearCollect(AllFutureEvents,Office365.GetEventsCalendarView(MyCalendarID,Text(Today(),UTC),Text(DateAdd(Today(),2,Days),UTC)).Values),Set(MyUserProfile,Office365Users.MyProfile().Id),

    /*used to determine if meeting attendees are in app user's org*/
Set(MyDomain,Last(Split(User().Email,"@")).Result),

    /*used to determine countdown to end of selected meeting*/
Set(HomeTimerStart,Now()));

/*Meetings are defined to be calendar events less than 6 hours in length*/
ClearCollect(MeetingsOnly,Filter(AddColumns(AllFutureEvents,"isCurrent",DateDiff(Start,Now(),Seconds)>0&&DateDiff(Now(),End,Seconds)>0),DateDiff(Start,End,Hours)<6));Set(NumberOfCurrentMeetings,CountRows(Filter(MeetingsOnly,isCurrent)));

/*If a single meeting is happening now, autoselect it*/
If(NumberOfCurrentMeetings=1,Set(AutoSelectMeeting, true );Set(SelectedMeeting,LookUp(MeetingsOnly,isCurrent)))

 

 

FollowUpTimesScreen --> Button ('Find Available Times')

 

ClearCollect(MeetingTimes,AddColumns(
Office365.FindMeetingTimes(
{
MaxCandidates:15,MinimumAttendeePercentage: 1, 
MeetingDuration: MeetingDurationSelection.SelectedText.Minutes,
Start:Text(DateAdd(DatePicker1.SelectedDate,MeetingStartRange.SelectedText.Minutes, Minutes), UTC),
End:Text(DateAdd(DatePicker1.SelectedDate, MeetingEndRange.SelectedText.Minutes, Minutes), UTC),
RequiredAttendees:Concat(FollowUpMeetingAttendees,UserPrincipalName & ";")
}
)
.MeetingTimeSuggestions,"StartTime",MeetingTimeSlot.Start.DateTime,
"EndTime",MeetingTimeSlot.End.DateTime));
Set(ShowMeetingTimes, true);
Set(Loading, false)

 

 

Gallery

 

SortByColumns(MeetingTimes,"Confidence",Descending,"StartTime",Ascending)

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
Community Support Team
Community Support Team

Re: Meeting Capture FollowupTimesScreen: 2 date pickers to select Start and End

Hi @whabicht ,

Is the solution I provided above helpful in your scenario?

 

If the solution I provided above could solved your problem, please consider go ahead to click "Accept as Solution" to identify this thread has been solved.

 

If you want to get more Meeting Options using your Office365Outlook.FindMeetingTimes() function, please check and see if my response within the following thread would help in your scenario:

https://powerusers.microsoft.com/t5/Building-Power-Apps/Schedule-Meeting-How-to-retrieve-complete-Me...

 

On your side, you should modify your formula as below:

Set(Loading, true);
ClearCollect(
             MeetingTimes,
             AddColumns(
                 Office365.FindMeetingTimes({
                                           MaxCandidates: 48,  // modify formula here
                                           MinimumAttendeePercentage: 1, 
                                           MeetingDuration: MeetingDurationSelection.SelectedText.Minutes,
        Start: Text(DateAdd(StartDatePicker.SelectedDate, MeetingStartRange.SelectedText.Minutes, Minutes), UTC), // Modify formula here
        End: Text(DateAdd(EndDatePicker.SelectedDate, MeetingEndRange.SelectedText.Minutes, Minutes), UTC),   // Modify formula here
                         RequiredAttendees:Concat(FollowUpMeetingAttendees,UserPrincipalName & ";"),
                         ActivityDomain: "Unrestricted", // add formula here
                         IsOrganizerOptional: false    // add formula here
             }).MeetingTimeSuggestions,
                         "StartTime", MeetingTimeSlot.Start.DateTime,    
                         "EndTime", MeetingTimeSlot.End.DateTime        
            )
);
Set(ShowMeetingTimes, true);
Set(Loading, false)

Please take a try with above formula, then re-click the "Find Available Times" button again, check if the issue is solved.

 

Best regards,

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

3 REPLIES 3
Community Support Team
Community Support Team

Re: Meeting Capture FollowupTimesScreen: 2 date pickers to select Start and End

Hi @whabicht ,

Could you please share a bit more about your scenario?

Do you want to filter meeting time records using Date time range which across different dates rather than within one day?

 

I have made a test on my side, please consider take a try with the following workaround:

Within your FollowUpTimesScreen, set the OnSelect property of the "Find Available Times" button to following:

Set(Loading, true);
ClearCollect(
             MeetingTimes,
             AddColumns(
                 Office365.FindMeetingTimes({
                                           MaxCandidates:15,
                                           MinimumAttendeePercentage: 1, 
                                           MeetingDuration: MeetingDurationSelection.SelectedText.Minutes,
        Start: Text(DateAdd(StartDatePicker.SelectedDate, MeetingStartRange.SelectedText.Minutes, Minutes), UTC), // Modify formula here
        End: Text(DateAdd(EndDatePicker.SelectedDate, MeetingEndRange.SelectedText.Minutes, Minutes), UTC),   // Modify formula here
                         RequiredAttendees:Concat(FollowUpMeetingAttendees,UserPrincipalName & ";")}).MeetingTimeSuggestions,
                         "StartTime", MeetingTimeSlot.Start.DateTime,
                         "EndTime", MeetingTimeSlot.End.DateTime
            )
);
Set(ShowMeetingTimes, true);
Set(Loading, false)

Note: Please replace the StartDatePicker and EndDatePicker with actual DatePicker names in your FollowUpTimesScreen.

 

After that, please re-load your app, then check if the issue is solved.

 

Best regards,

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
whabicht
Level: Powered On

Re: Meeting Capture FollowupTimesScreen: 2 date pickers to select Start and End

Thanks @v-xida-msft . It's working like a charm. The last issue I could use help with is figuring out how to display more than 15 meeting options in the gallery. Do you have any idea how I might accomplish that?
You have been super helpful. I appreciate it.

Community Support Team
Community Support Team

Re: Meeting Capture FollowupTimesScreen: 2 date pickers to select Start and End

Hi @whabicht ,

Is the solution I provided above helpful in your scenario?

 

If the solution I provided above could solved your problem, please consider go ahead to click "Accept as Solution" to identify this thread has been solved.

 

If you want to get more Meeting Options using your Office365Outlook.FindMeetingTimes() function, please check and see if my response within the following thread would help in your scenario:

https://powerusers.microsoft.com/t5/Building-Power-Apps/Schedule-Meeting-How-to-retrieve-complete-Me...

 

On your side, you should modify your formula as below:

Set(Loading, true);
ClearCollect(
             MeetingTimes,
             AddColumns(
                 Office365.FindMeetingTimes({
                                           MaxCandidates: 48,  // modify formula here
                                           MinimumAttendeePercentage: 1, 
                                           MeetingDuration: MeetingDurationSelection.SelectedText.Minutes,
        Start: Text(DateAdd(StartDatePicker.SelectedDate, MeetingStartRange.SelectedText.Minutes, Minutes), UTC), // Modify formula here
        End: Text(DateAdd(EndDatePicker.SelectedDate, MeetingEndRange.SelectedText.Minutes, Minutes), UTC),   // Modify formula here
                         RequiredAttendees:Concat(FollowUpMeetingAttendees,UserPrincipalName & ";"),
                         ActivityDomain: "Unrestricted", // add formula here
                         IsOrganizerOptional: false    // add formula here
             }).MeetingTimeSuggestions,
                         "StartTime", MeetingTimeSlot.Start.DateTime,    
                         "EndTime", MeetingTimeSlot.End.DateTime        
            )
);
Set(ShowMeetingTimes, true);
Set(Loading, false)

Please take a try with above formula, then re-click the "Find Available Times" button again, check if the issue is solved.

 

Best regards,

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

Helpful resources

Announcements
Better Together’ Contest Finalists Announced!

'Better Together’ Contest Finalists Announced!

Congrats to the finalists of our ‘Better Together’-themed T-shirt design contest! Click for the top entries.

thirdimage

Power Apps Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Join THE global Microsoft Power Platform event series

Attend for two days of expert-led learning and innovation on topics like AI and Analytics, powered by Dynamic Communities

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

thirdimage

Microsoft Business Applications Virtual Launch

Join us for the Microsoft Business Applications Virtual Launch Event on Thursday, April 2, 2020, at 8:00 AM PST.

thirdimage

Community Summit North America

Innovate, Collaborate, Grow - The top training and networking event across the globe for Microsoft Business Applications

Top Solution Authors
Top Kudoed Authors
Users online (4,941)