1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

PowerAutomate Sharepointのサブサイトの作成方法

Last updated at Posted at 2024-03-18

Sharepointデフォルトのテンプレートの場合

image.png

設定方法

a. サイトURL:https://test.com/sites/test/Projects/

b. POST 

c. Uri: /_api/web/webinfos/add 

d. Headers: Use the following header key-value pairs 
Accept application/json;odata=verbose 

Content-Type application/json;odata=verbose 

e. Body: Copy-paste following JSON to the Body input box 
{ '__metadata': 

{ 'type': 'SP.WebInfoCreationInformation' }, 

'Url':'@{variables('SiteURL')}', 

'Title':'@{variables('Site Title')}', 

'Description':'Project Site', 

'Language':'1033', (日本語1041)

'WebTemplate':'STS#3', 

'UseUniquePermissions':false 

} 

} 

sharepointonline カスタマサイトテンプレートの場合

1.手動でサブサイトを作成

2.作成されたサイトをテンプレートとして設定
設定手順:
サブサイト→サイトの設定
→テンプレートとしてサイトを保存
→ファイル名、テンプレート名、コンテンツを含むを入力
→OKボタンをクリックして保存

3.サイトテンプレートIDを取得
※テンプレートが英語の場合、「言語の選択」を英語に変更しないと、下記の「Custom」タブが出ません。
image.png

Finding the SiteTemplate GUID
The quickest way to get the GUID of a site template is to start creating a new site. When prompted to select the template open the “Custom” tab so that your template is shown. Press F12 in IE to open the developer bar and search for the template name.

参考サイト:https://www.dmcinfo.com/latest-thinking/blog/id/8661/create-site-from-template-using-sharepoint-2013-workflow

4.テンプレートIDをフローに設定
image.png
設定方法

a. サイトURL:https://test.com/sites/test/Projects/

b. POST 

c. Uri: /_api/web/webinfos/add 

d. Headers: Use the following header key-value pairs 
Accept application/json;odata=verbose 

Content-Type application/json;odata=verbose 

e. Body: Copy-paste following JSON to the Body input box 
{ '__metadata': 

{ 'type': 'SP.WebInfoCreationInformation' }, 

'Url':'@{variables('SiteURL')}', 

'Title':'@{variables('Site Title')}', 

'Description':'Project Site', 

'Language':'1033', (日本語1041)

'WebTemplate':'{84659096-89AD-4CC4-B1E2-5048DE9EDA46}#ProjectSiteTemplate', 

'UseUniquePermissions':false 

} 

} 

参考サイト:

1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?