SharePoint online is a Microsoft solution for organizational document management. Many companies use SharePoint as their first choice for document management because of its rich features and modern appeal. Moreover, SharePoint websites can be customized to improve user experience and to add new features.
In this post you will learn
- You need to have the following to develop this application
- A SharePoint online site with web-part page.
- An IDE to write the code. Although this is not mandatory but this helps to write codes faster.
- Basic understanding of REST API call works and how to call a REST endpoint.
First Step: Add the Web-part
Edit the SharePoint page and add a “Script Editor” web-part. In order to add a “Script Editor”, click on Insert > Media and Content > Script Editor.
Step 2: Edit the Web-Part
The code is provided below for your reference. It is very simple HTML/JS code which is calling a REST and fetching the result. One point to note, for the script to work you need to change the list name. Check the screenshot below for reference.
To paste the code, Edit page > Edit Snippet > Paste the code > Stop editing the page.
Final Step: Test the result
Follow our other blog posts related to SPO development
Moreover, you can check the Microsoft documentation, which can help you to improve your knowledge further.
Do not forget to check our other blog posts at https://newbietechie.com/