1

I have created a demo with reference to the below link,

https://gonadn.medium.com/spfx-with-angular-element-crud-operations-using-pnpjs-5a8a18ed6e43

It is working correctly in the workbench. Kindly refer to the below image, enter image description here

It is not working correctly on the SharePoint page.

Throwing below error in SharePoint list api call

GET https://xyzsharepoint.sharepoint.com/sites/devsite/SitePages/_api/web/lists/getByTitle('TestList')/items?$top=2000 404

Kindly refer to the below image,

enter image description here

Can you please assist me with the same?

Thanks :)

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.