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 / Calendar free busy inf...
Power Apps
Answered

Calendar free busy information

(0) ShareShare
ReportReport
Posted on by 110

As per this post: https://powerusers.microsoft.com/t5/Building-Power-Apps/Power-APPS-Calendar-getSchedule/td-p/344553 I'm trying to read the free busy information for a user using a custom connector. From testing the connector within the app it shows that it is retrieving the information correctly since I see it in the collection once it executes.

randomsky_0-1641191078726.png

 

After the code executes I'm also able to get the users ID using this code:

ClearCollect(
 UserFreeBusyId,
 ForAll(
 UserFreeBusy.value,
 value.scheduleId
 )
);

 

However when I attempt to retrieve the start and end date and time of the calendar entry, it doesn't seem to work:

randomsky_2-1641191274824.png

I was hoping that the same approach for accessing the nested data would work as per this post: https://powerusers.microsoft.com/t5/Building-Power-Apps/Understanding-Nested-Collections/td-p/336270 however it doesn't seem to be working. Any guidance appreciated. Thanks.

Categories:
  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    @randomsky 

    I’d recommend tagging the MS employee who provided the solution in your first link and also a description of the error you are seeing.

     

  • randomsky Profile Picture
    110 on at

    @Anonymous , the errors are:

    randomsky_0-1641248804797.png

    and

    randomsky_1-1641248851840.png

     

    If I remove the dot after the scheduleItems the error goes away but it doesn't give me the nested data under the scheduleItems sub-collection. 

     

    randomsky_2-1641248969230.png

     

     

     

     

     

  • randomsky Profile Picture
    110 on at

    Any thoughts @v-xida-msft ?

  • v-xiaochen-msft Profile Picture
    Microsoft Employee on at

    Hi @randomsky ,

     

    Please provide the values in the value column.

    vxiaochenmsft_0-1641261607063.png

     

    Best Regards,

    Wearsky

     

  • randomsky Profile Picture
    110 on at

    @v-xiaochen-msft , these are the values:

    randomsky_0-1641267998361.pngrandomsky_1-1641268032984.pngrandomsky_2-1641268054340.png

     

     

     

     

  • v-xiaochen-msft Profile Picture
    Microsoft Employee on at

    Hi @randomsky ,

     

    Why is there a'.' at the end of your formula?

    vxiaochenmsft_0-1641276920932.png

     

    Best Regards,

    Wearsky

  • randomsky Profile Picture
    110 on at

    @v-xiaochen-msft , as per this post: https://powerusers.microsoft.com/t5/Building-Power-Apps/Understanding-Nested-Collections/td-p/336270 I was trying to get to the next level of the collection under scheduleItems which in this case is either start, end or busy however when I add the dot it doesn't show me any of those columns. When I remove the dot the error goes away but it then does not give me the start and end dates of the schedule.

  • Verified answer
    v-xiaochen-msft Profile Picture
    Microsoft Employee on at

    Hi @randomsky ,

     

    You could see the preview of your output in the formula.

    For example:

    vxiaochenmsft_0-1641283119611.png

     

    If your output is like the values in my image ,you could try to use ungroup function.

    vxiaochenmsft_1-1641283201388.png

     

    Best Regards,

    Wearsky

     

     

  • randomsky Profile Picture
    110 on at

    @v-xiaochen-msft , yes, the forall preview shows a table similar to yours:

    randomsky_0-1641336618647.png

    I then used the ungroup function to try and get to the start and end date/time:

    randomsky_1-1641336700249.png

    and this is what it gets me to:

    randomsky_2-1641336730224.png

    I then tried to access the start date time using a variable:

    randomsky_3-1641336959434.png

    And when I try to display the value of the variable it says that it is of type Table

    randomsky_4-1641337013743.png

     

     

  • v-xiaochen-msft Profile Picture
    Microsoft Employee on at

    Hi @randomsky ,

     

    Please try this:

    First(varstart).column name

     

    Best Regards,

    Wearsky

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