Regarding Github SharePoint Online Sample

SHUO .H 706 Reputation points
2021-07-21T08:51:06.907+00:00

Hi there,

I found out a article and sample for SharePoint Online (https://github.com/pnp/List-Formatting/tree/master/view-samples/document-library). It is a better sample for me.

I went through the article and found out a question:

Site Script

This sample includes a site script (update-documents.json) that creates the required site columns, the Document Library, and a new view named All Documents - customized in the Document Library that contains all the required columns.

I use the following command and cannot find something different:

Add-SPOSiteDesign -Title "Document Library Sample" -WebTemplate "64" -SiteScripts "2756067f-d818-4933-a514-2a2b2c50fb06" -Description "Creates customer list and applies standard theme"

cannot find this: "that creates the required site columns, the Document Library, and a new view named All Documents - customized in the Document Library that contains all the required columns."

116669-untitled.png

Does anyone have any idea on it. ?? thanks

SharePoint
SharePoint
A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
10,685 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,971 questions
0 comments No comments
{count} votes

Accepted answer
  1. MichaelHan-MSFT 18,031 Reputation points
    2021-07-22T02:17:30.793+00:00

    Hi @SHUO .H ,

    After you create the site design, you need to apply the design to your site with the command:

    Invoke-SPOSiteDesign -Identity <id of siteDesign> -WebUrl "https://tenant.sharepoint.com/sites/yoursite"  
    

    116888-image.png


    If an Answer is helpful, please click "Accept Answer" and upvote it.
    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.