Using Microsoft Graph to get the section name of horizontal sections

Jason Sypkens 0 Reputation points
2023-09-14T14:19:48.23+00:00

Attempting to use Microsoft Graph to pull data from a SharePoint page. The content of this page is stored in text webparts inside collapsible sections.

I am able to get the page, list the webparts, and see the innerHtml of the webparts, but I can't see the Section Names - which is an important part of the information we're looking to extract.

I'm also able to list the horizontal sections, GET a section, list the columns, and get a specific column - and even expand the webparts that are found in that section, but there still doesn't appear to be any properties for the section name.

This is what the section looks like, with the section name and the text webpart for content.User's image

Using these graph endpoints, for reference:

https://learn.microsoft.com/en-us/graph/api/horizontalsection-get?view=graph-rest-beta

https://learn.microsoft.com/en-us/graph/api/horizontalsectioncolumn-list?view=graph-rest-beta

https://learn.microsoft.com/en-us/graph/api/horizontalsectioncolumn-get?view=graph-rest-beta

Microsoft 365 and Office | SharePoint | For business | Windows
Microsoft Security | Microsoft Graph
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Anonymous
    2023-09-15T07:59:16.67+00:00

    HI @Jason Sypkens

    I found that at most I can only get the inner html of the webpart in the section.

    User's image

    User's image

    Regarding section, the official does not provide more attributes for this API for us to use.

    User's image

    And I feel regretful to inform you that it turns out to be a by-design one.

    And I noticed that some end users have also proposed the same request, it is highly recommended that you can vote this ticket. Many features of our current products are designed and upgraded based on customers’ feedback. With requirements like this increase, the problem may well be released in the future. Thanks for your understanding.

     

    feedback
    https://feedbackportal.microsoft.com/feedback/

    Moreover, this function is a test version and will continue to be updated in the future. Please pay attention to the official documentation.


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    Best Regards

    Cheng Feng


Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.