user20404265
user20404265

Reputation:

Enable the "Make "New Folder" command available?" option with Sharepoint using @pnp/sp

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, enter image description here

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, enter image description here

Can anyone help me with the same?

Upvotes: 0

Views: 492

Answers (1)

Sergiy Kostenko
Sergiy Kostenko

Reputation: 283

You need to allow folder creation. Go to library settings -> advance settings-> Set to yes "Make "New Folder" command available?"

Upvotes: 0

Related Questions