Canadian Patient Safety Institute



Standard API of SharePoint Online PowerShell is very limitation. We can only:Create new site collectionCreate group and add users to groupRemove users from groupGet some general informationYou can see the list of API supported by SharePoint Online PowerShell in this article: advanced features, we can use CSOM (Client Side Object Models) API. This API is strong then we can do very much actions in SharePoint. You can read summary information in these articles: can see the list of API supported by CSOM in this article: about what’s we can do for our Intranet siteBuild the intranet siteWe can use API in libraries:Microsoft.SharePoint.Client.dllMicrosoft.SharePoint.Client.Runtime.dllMicrosoft.Online.SharePoint.Client.Tenant.dllMain API: Tenant.CreateSite()Reference: all site structure including pagesWe can use API in these libraries (we cannot create multi web, but we can create one by one with the “for” statements):Microsoft.SharePoint.Client.dllMicrosoft.SharePoint.Client.Runtime.dllMain API: ClientContext.Web.Webs.Add()Reference: files up to the Intranet site (CSS, JS, Page Layouts, Master Pages)We can API in these libraries to copy files (css, js, images, documents) from HDD to Document Library in SharePoint Online by CSOM:Microsoft.SharePoint.Client.dllMicrosoft.SharePoint.Client.Runtime.dllMicrosoft.SharePoint.Client.Publishing.dllMain API: List.RootFolder.Files.Add() or Folder.Files.Add()Reference: the master page, we can upload to Master Page Gallery in SharePoint Online from HDD with same method above, but we need set master page for WebMain API: Web.MasterUrl, Web.CustomMasterUrl?, Web.Update()Reference: the page layouts, we can upload to Master Page Gallery in SharePoint Online from HDD with same method above, but we need deploy page layouts for WebMain API: Deploy-PageLayout -Web “Web” -FilePath “WelcomePageFilePath” -AssociatedContentTypeId “WelcomePageContentTypeId”Reference: the master pagePlease review aboveDeploy sample contentWe can upload files, documents, from HDD to Document Library with aboveWe can create List Item with API in libraries:Microsoft.SharePoint.Client.dllMicrosoft.SharePoint.Client.Runtime.dllMain API: List.AddItem()Reference: for list items should store in csv filesWith publishing page, we need API in libraries:Microsoft.SharePoint.Client.dllMicrosoft.SharePoint.Client.Runtime.dllMicrosoft.SharePoint.Client.Publishing.dllMain API: Web.AddPublishingpage()Reference: for pages (include page content) should store in csv filesDeploy app functionsApps we using in Intranet site now created by HTML, JavaScrip, CSS, Images, then we can use method above to upload files from HDD to SP Online SiteWith apps build as Online App (install from Store or App Catalogs), you should install to site by manual.Create Mega menu itemsMenu items in mega menu is list item, and we can same as create List Item above.With icon (image) of mega menu items, we can store in HDD, and define in csv fileAdd web part to pageWe can add web part to pages with API in libraries:Microsoft.SharePoint.Client.dllMicrosoft.SharePoint.Client.Runtime.dllMicrosoft.SharePoint.Client.Publishing.dllReference: ................
................

In order to avoid copyright disputes, this page is only a partial summary.

Google Online Preview   Download

To fulfill the demand for quickly locating and searching documents.

It is intelligent file search solution for home and business.

Literature Lottery

Related searches