我试图在共享点现代页面上添加自定义“小组成员webpart”(在此处找到https://gitlab.lsonline.fr/SharePoint/sp-dev-fx-webparts/group-people)并设置属性。
在Json下面用于设置属性
Add-PnPClientSideWebPart -Page "Home" -DefaultWebPartType "Custom" -Section 1 -Column 2
$jsonProps = @'
{
"preconfiguredEntries":
[{
"groupId": "5c03119e-3074-46fd-976b-c60198311f70",
"group": { "default": "Other" },
"title": { "default": "Group People" },
"description": { "default": "Display user from SharePoint group" },
"properties":
{
"ToggleTitle": true,
"CustomTitle":"Test",
"SPGroups":11
}
}]
}
'@
Set-PnPClientSideWebPart -Page Home -Identity 8c8a5a78-4c91-4f0e-b538-cca0094f8191 -PropertiesJson $jsonProps
但这似乎不起作用。
有帮助吗?
谢谢!
要在页面上添加小组成员Web部件并在站点配置enter image description here期间设置属性