-1

enter image description hereneed to read metadata from sharePoint is anyone help meenter image description here

2
  • What exactly do you want to read? Is it SharePoint list information? Commented Feb 22, 2023 at 5:09
  • we want to read entire page using rest or any using any other way... please help Commented Feb 22, 2023 at 5:32

1 Answer 1

0

You can use SharePoint REST API in your client side application to read data from SharePoint list.

You have to use REST endpoint in below format:

https://{site_url}/_api/web/lists/GetByTitle('Employee List')/items 

Documentation: Working with lists and list items with REST

Also, check this article Get All Items in SharePoint using REST API. It has links to similar examples to read items using JSOM, CSOM and PowerShell which you can refer and use as per your requirements.


Update:

If you want to fetch site page contents, use endpoint in this format:

https://contoso.sharepoint.com/sites/SiteName/_api/web/lists/getbytitle('Site Pages')/items(1)?$select=Title,CanvasContent1 

Replace 1 with the item ID of your site page from site pages library.

You can get the item ID of your site from site pages library.

  1. Go to site pages library using URL like: https://contoso.sharepoint.com/sites/SiteName/SitePages

  2. Click on Add Column and then Show or hide columns:

    enter image description here

  3. Select checkbox next to ID, click Apply:

    enter image description here

  4. You will see item ID in site pages library view like:

    enter image description here

OR

You can get the page content using page name as well using API like:

https://contoso.sharepoint.com/sites/SiteName/_api/web/lists/getbytitle('Site Pages')/items?$select=Title,FileLeafRef,CanvasContent1&$filter=FileLeafRef eq 'Employee.aspx' 
5
  • employee page details i want to read Commented Feb 22, 2023 at 6:37
  • check updated answer. Commented Feb 22, 2023 at 6:46
  • site page url not working. I have added page screenshot above please see and help how i get site ID. Commented Feb 22, 2023 at 9:14
  • Check updated answer. You can either use ID approach or get page content using page name as well. I have added both endpoints. Commented Feb 22, 2023 at 9:26
  • 1
    Thanks a lot for helping me. Commented Feb 22, 2023 at 9:45

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.