How to parse sharepoint aspx file

Zheng Tzer Lee 20 Reputation points
2024-07-24T00:33:13.6233333+00:00

Hi,

i had successfully retrieve SharePoint site page through graph API, able to parse site basic information, but stucked at contentImageany possible approach?

thanks

Zheng Tzer Lee

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
12,023 questions
SharePoint Development
SharePoint Development
SharePoint: A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.Development: The process of researching, productizing, and refining new or existing technologies.
2,982 questions
0 comments No comments
{count} votes

Accepted answer
  1. RaytheonXie_MSFT 35,471 Reputation points Microsoft Vendor
    2024-07-24T06:52:38.55+00:00

    Hi @Zheng Tzer Lee,

    You could expand canvasLayout to get page content. Please refer to following api

    https://graph.microsoft.com/beta/sites/<<SITE-ID>>/pages/<<PAGE-ID>>/microsoft.graph.sitePage?$expand=canvasLayout
    
    

    Here is the document for more details:

    https://learn.microsoft.com/en-us/graph/api/sitepage-get?view=graph-rest-1.0&tabs=http#example-3-get-a-page-with-page-content


    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.


0 additional answers

Sort by: Most helpful

Your answer

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