Share via

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 365 and Office | SharePoint | Development
Microsoft Security | Microsoft Graph
0 comments No comments
{count} votes

Answer accepted by question author
  1. RaytheonXie_MSFT 40,496 Reputation points Microsoft External Staff
    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' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.