question

ShreyaSingh-6920 avatar image
0 Votes"
ShreyaSingh-6920 asked AmosWu-MSFT commented

How to fetch more than one sharePoint list data in single table using Javascripts.

Is it possible to fetch multiple SharePoint list data in single table using JavaScript?

office-sharepoint-online
· 2
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi, @ShreyaSingh-6920,
Do you want to display the data of multiple lists in one HTML table? If my understanding is wrong, please correct me.

0 Votes 0 ·

Yes i want to show data of multiple lists in one HTML table.

0 Votes 0 ·

1 Answer

AmosWu-MSFT avatar image
0 Votes"
AmosWu-MSFT answered AmosWu-MSFT commented

For this requirement, we need to request multiple REST APIs to get all list data, then show them to the page.

Test code for your reference:73638-code.txt
Test result:
73609-image.png


If the response is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


code.txt (2.1 KiB)
image.png (14.9 KiB)
· 3
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi @ShreyaSingh-6920,
Do you have any update on this issue?
,

0 Votes 0 ·

Hi @ShreyaSingh-6920,
You can accept the helpful post as answer to help other community members find helpful information quickly.
You can also share your own solution here and mark it as answer, and we can learn from each other.

0 Votes 0 ·

Hi @ShreyaSingh-6920,
I am checking to see how things are going there on this issue. Please let us know if you would like further assistance.
You can accept the helpful post as answer to help other community members find helpful information quickly.
You can also share your own solution here and accept it as answer, and we can learn from each other.

0 Votes 0 ·