Skip to content

Latest commit

 

History

History
62 lines (47 loc) · 1.98 KB

File metadata and controls

62 lines (47 loc) · 1.98 KB
page_type products languages extensions
sample
ms-graph
powershell
javascript
c-sharp
contentType technologies services createdDate
samples
Microsoft Graph
SharePoint
12/13/2022 2:58:06 PM

Microsoft Graph SharePoint Pages API Samples

This solution is intended to provide you an example of how various functionalities of entities available in the Microsoft Graph SharePoint Pages API could be integrated to enrich your solutions (applications or services).

These samples are available in different programming languages / scripts / formats so as to meet the needs for different developer audiences.

We have samples in the following languages for Microsoft Graph SharePoint Pages API with respective repository locations:

Language Repo
.NET - ASPNET MVC Sample
Node.JS Sample
PowerShell Sample
Spfx solution Sample

Scenarios

Sample code in .NET - ASPNET MVC, Node.JS, PowerShell includes following scenarios:

  1. List all pages in the site
  2. Copy a page to multiple sites. (Notes: This call won't copy assets to the target site. It works with pages only have cdn assets.)
  3. Delete pages before a target date
  4. Promote multiple pages to news post.

Sample code in Spfx solution includes:

  1. List and pages in the site
  2. Filter pages by title, page layout type and the promotion kind.

Solution

Solution Author(s)
PagesAPISolution Hanbing Wang

Version history

Version Date Comments
1.0 December 13, 2022 Initial version
1.1 December 27, 2022 Add spfx solution

Resources