Reputation:
I need to create folder under Site Pages library under SharePoint Online site.
I have tried to create the folder programmatically using @pnp/sp library. But it thrown me Access Denied error.
New Folder option is missing while click on New. Please check below screenshot,
I have check the solutions for the same and I got the solution if New folder option will enable then I can create new page.
So, I need to enable New Folder option programmatically using @pnp/sp library as per the below screenshot,
Can anyone help me with the same?
Upvotes: 0
Views: 492
Reputation: 283
You need to allow folder creation. Go to library settings -> advance settings-> Set to yes "Make "New Folder" command available?"
Upvotes: 0