1

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?

Bhoomesh Joshi
  • 89
  • 1
  • 1
  • 5

1 Answers1

0

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

Sergiy Kostenko
  • 273
  • 1
  • 2
  • 11