cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
MAPA_James
New Member

PowerApps: Calender screen filter which calendars should be displayed for my users.

I'm in the process of creating a PowerApp for one of my clients.

 

One of the features should be to be able to check certain calendars for events.

 

I thought of using the template Calendars screen but my biggest problem is that it displays ALL the calendars the user has access to. I'm looking for a way to not display all calendars but only the one I want the users to be able to see.

 

I see that the default function of the dropdown box is 'Office365Outlook.CalendarGetTables().value' but is there a way to be able to add in the names of only the calendars you want to show? Or maybe a way to add some exceptions?

My biggest problem now is that it displays the personal calendar.

1 ACCEPTED SOLUTION

Accepted Solutions
v-xiaochen-msft
Community Support
Community Support

Hi @MAPA_James ,

 

You only need to use the filter() function to filter the returned calendar collection.

Filter(Office365Outlook.CalendarGetTables().value,Or(DisplayName<>"a",DisplayName<>"b"))

 

Best Regards,

Wearsky

View solution in original post

2 REPLIES 2
v-xiaochen-msft
Community Support
Community Support

Hi @MAPA_James ,

 

You only need to use the filter() function to filter the returned calendar collection.

Filter(Office365Outlook.CalendarGetTables().value,Or(DisplayName<>"a",DisplayName<>"b"))

 

Best Regards,

Wearsky

Thanks for the answer!

 

I actually found the same solution some hours after posting this question and used the exact same method.

Helpful resources

Announcements
Power Apps News & Annoucements carousel

Power Apps News & Announcements

Keep up to date with current events and community announcements in the Power Apps community.

Power Apps Community Blog Carousel

Power Apps Community Blog

Check out the latest Community Blog from the community!

Top Solution Authors
Top Kudoed Authors
Users online (5,771)