sp-dev-docs icon indicating copy to clipboard operation
sp-dev-docs copied to clipboard

What is the best way to get content form sharepoint pages microsoft graph new pages api or pnp powerhsell

Open harshdamaniahd opened this issue 8 months ago • 0 comments

What type of issue is this?

Question

What SharePoint development model, framework, SDK or API is this about?

💥 SharePoint Framework

Target SharePoint environment

SharePoint Online

What browser(s) / client(s) have you tested

  • [ ] 💥 Internet Explorer
  • [ ] 💥 Microsoft Edge
  • [ ] 💥 Google Chrome
  • [ ] 💥 FireFox
  • [ ] 💥 Safari
  • [ ] mobile (iOS/iPadOS)
  • [ ] mobile (Android)
  • [ ] not applicable
  • [ ] other (enter in the "Additional environment details" area below)

Additional environment details

  • browser version
  • SPFx version
  • Node.js version
  • etc

Issue description

Should i use the new microsoft graph api to get content from sharepoint pages or Should I use pnp powershell for that Microsoft Graph Api : https://learn.microsoft.com/en-us/graph/api/sitepage-get?view=graph-rest-1.0&tabs=http

PnP PowerShell : Working with modern client-side pages using PnP PowerShell | Microsoft Learn

I would also like to see if we ChangeLog Api in microsoft graph. So that I can only get those items that have changed

Like the below code Query SharePoint change log with ChangeQuery and ChangeToken | Microsoft Learn

harshdamaniahd avatar Jun 28 '24 14:06 harshdamaniahd