sp-dev-docs icon indicating copy to clipboard operation
sp-dev-docs copied to clipboard

Adding List Views withe SiteScript not possible

Open corily18 opened this issue 8 years ago • 3 comments

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

  1. Create new site script
  2. Add site script: Get-Content 'FILE_URL.json'-Raw | Add-SPOSiteScript -Title "Demo Collaboration Site"
  3. Script is added and ID is generated

corily18 avatar Aug 30 '18 12:08 corily18

Reproduced and researching on it

Seiyasu avatar Aug 31 '18 08:08 Seiyasu

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.

ghost avatar Dec 29 '21 15:12 ghost

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

ghost avatar Jan 06 '22 00:01 ghost