How to get today task from multiple team subsite's task list?
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty{ margin-bottom:0;
}
up vote
2
down vote
favorite
If I enter the project name in a project list then based on that project name it should create a team subsite which will contain a one task list.
for example there are a 100 team subsites and each subsite will have one task list.
So, I want today's task from all the 100 subsite's task list in a single API call whether it is rest or graph API or any other solution for it.
Note: Name of task list is same for all subsites.
Thanks
sharepoint-rest-api sharepoint-search graph-api
add a comment |
up vote
2
down vote
favorite
If I enter the project name in a project list then based on that project name it should create a team subsite which will contain a one task list.
for example there are a 100 team subsites and each subsite will have one task list.
So, I want today's task from all the 100 subsite's task list in a single API call whether it is rest or graph API or any other solution for it.
Note: Name of task list is same for all subsites.
Thanks
sharepoint-rest-api sharepoint-search graph-api
add a comment |
up vote
2
down vote
favorite
up vote
2
down vote
favorite
If I enter the project name in a project list then based on that project name it should create a team subsite which will contain a one task list.
for example there are a 100 team subsites and each subsite will have one task list.
So, I want today's task from all the 100 subsite's task list in a single API call whether it is rest or graph API or any other solution for it.
Note: Name of task list is same for all subsites.
Thanks
sharepoint-rest-api sharepoint-search graph-api
If I enter the project name in a project list then based on that project name it should create a team subsite which will contain a one task list.
for example there are a 100 team subsites and each subsite will have one task list.
So, I want today's task from all the 100 subsite's task list in a single API call whether it is rest or graph API or any other solution for it.
Note: Name of task list is same for all subsites.
Thanks
sharepoint-rest-api sharepoint-search graph-api
sharepoint-rest-api sharepoint-search graph-api
edited yesterday
Ganesh Sanap
1,500420
1,500420
asked yesterday
Chandresh
1658
1658
add a comment |
add a comment |
2 Answers
2
active
oldest
votes
up vote
3
down vote
A few days ago there was a question along the same lines here: Retrieve one library from each site and show the last item using ajax
You would need to first get all subsites using this rest endpoint:/_api/web/webs?$expand=Webs
Then loop the returned data and grab all items from the list that match the current date. Here's the base endpoint for that (You need to replace "Projects" with your list name): /_api/web/lists/GetByTitle('Projects')/items
You would need to prepend the actual url from the first loop for each site to the endpoint.
It's not super hard to make using client side javascript, but it does take a bit of time to get everything right.
add a comment |
up vote
2
down vote
Another option could be to use search to fetch those tasks with due date today, something like this https://www.kalmstrom.com/tips/SPSearch-My-Open-Tasks.htm
add a comment |
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
3
down vote
A few days ago there was a question along the same lines here: Retrieve one library from each site and show the last item using ajax
You would need to first get all subsites using this rest endpoint:/_api/web/webs?$expand=Webs
Then loop the returned data and grab all items from the list that match the current date. Here's the base endpoint for that (You need to replace "Projects" with your list name): /_api/web/lists/GetByTitle('Projects')/items
You would need to prepend the actual url from the first loop for each site to the endpoint.
It's not super hard to make using client side javascript, but it does take a bit of time to get everything right.
add a comment |
up vote
3
down vote
A few days ago there was a question along the same lines here: Retrieve one library from each site and show the last item using ajax
You would need to first get all subsites using this rest endpoint:/_api/web/webs?$expand=Webs
Then loop the returned data and grab all items from the list that match the current date. Here's the base endpoint for that (You need to replace "Projects" with your list name): /_api/web/lists/GetByTitle('Projects')/items
You would need to prepend the actual url from the first loop for each site to the endpoint.
It's not super hard to make using client side javascript, but it does take a bit of time to get everything right.
add a comment |
up vote
3
down vote
up vote
3
down vote
A few days ago there was a question along the same lines here: Retrieve one library from each site and show the last item using ajax
You would need to first get all subsites using this rest endpoint:/_api/web/webs?$expand=Webs
Then loop the returned data and grab all items from the list that match the current date. Here's the base endpoint for that (You need to replace "Projects" with your list name): /_api/web/lists/GetByTitle('Projects')/items
You would need to prepend the actual url from the first loop for each site to the endpoint.
It's not super hard to make using client side javascript, but it does take a bit of time to get everything right.
A few days ago there was a question along the same lines here: Retrieve one library from each site and show the last item using ajax
You would need to first get all subsites using this rest endpoint:/_api/web/webs?$expand=Webs
Then loop the returned data and grab all items from the list that match the current date. Here's the base endpoint for that (You need to replace "Projects" with your list name): /_api/web/lists/GetByTitle('Projects')/items
You would need to prepend the actual url from the first loop for each site to the endpoint.
It's not super hard to make using client side javascript, but it does take a bit of time to get everything right.
edited yesterday
answered yesterday
Morten K
651516
651516
add a comment |
add a comment |
up vote
2
down vote
Another option could be to use search to fetch those tasks with due date today, something like this https://www.kalmstrom.com/tips/SPSearch-My-Open-Tasks.htm
add a comment |
up vote
2
down vote
Another option could be to use search to fetch those tasks with due date today, something like this https://www.kalmstrom.com/tips/SPSearch-My-Open-Tasks.htm
add a comment |
up vote
2
down vote
up vote
2
down vote
Another option could be to use search to fetch those tasks with due date today, something like this https://www.kalmstrom.com/tips/SPSearch-My-Open-Tasks.htm
Another option could be to use search to fetch those tasks with due date today, something like this https://www.kalmstrom.com/tips/SPSearch-My-Open-Tasks.htm
answered yesterday
Kasper Bo Larsen
1,51621017
1,51621017
add a comment |
add a comment |
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsharepoint.stackexchange.com%2fquestions%2f252901%2fhow-to-get-today-task-from-multiple-team-subsites-task-list%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown