Adding List Views withe SiteScript not possible
Category
- [ ] Question
- [ ] Typo
- [x] Bug
- [ ] Additional article idea
Expected or Desired Behavior
I tried to add a new list view to a site script
i have used following code snippet:
{
"verb": "addSPView",
"name": "Erfassung nach Name",
"viewFields":
[
"Gebucht von",
"Beginn",
"Ende",
"Tätigkeitsbeschreibung"
],
"query": "<Where><Eq><FieldRef Name='Gebucht von' /><Value Type='Integer'><UserID Type='Integer'/></Value></Eq></Where>",
"rowLimit": 100,
"isPaged": true,
"makeDefault": false
}
Expected: Code snippet with list view can be added to a site script and added to the tenant by the SharePoint Online Management Shell.
Info: When i remove the snippet, the site script is added to my tenant
Observed Behavior
Following PowerShell error was reported:
Add-SPOSiteScript : Unable to handle action addSPView. No action handler was registered for this action.
Steps to Reproduce
- Create new site script
- Add site script:
Get-Content 'FILE_URL.json'-Raw | Add-SPOSiteScript -Title "Demo Collaboration Site" - Script is added and ID is generated
Reproduced and researching on it
This issue is being closed as part of an issue list cleanup project. Issues with no activity in the past 6 months that aren't tracked by engineering as bugs were closed as part of this inititive. If this is still an issue, please follow the steps outlined to re-open or submit a new issue.
Issues that have been closed & had no follow-up activity for at least 7 days are automatically locked. Please refer to our wiki for more details, including how to remediate this action if you feel this was done prematurely or in error: Issue List: Our approach to locked issues