How to get today task from multiple team subsite's task list?











up vote
3
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










share|improve this question




























    up vote
    3
    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










    share|improve this question


























      up vote
      3
      down vote

      favorite









      up vote
      3
      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










      share|improve this question















      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






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Nov 19 at 11:02









      Ganesh Sanap

      1,4942623




      1,4942623










      asked Nov 19 at 9:30









      Chandresh

      1758




      1758






















          2 Answers
          2






          active

          oldest

          votes

















          up vote
          4
          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.






          share|improve this answer






























            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






            share|improve this answer





















              Your Answer








              StackExchange.ready(function() {
              var channelOptions = {
              tags: "".split(" "),
              id: "232"
              };
              initTagRenderer("".split(" "), "".split(" "), channelOptions);

              StackExchange.using("externalEditor", function() {
              // Have to fire editor after snippets, if snippets enabled
              if (StackExchange.settings.snippets.snippetsEnabled) {
              StackExchange.using("snippets", function() {
              createEditor();
              });
              }
              else {
              createEditor();
              }
              });

              function createEditor() {
              StackExchange.prepareEditor({
              heartbeatType: 'answer',
              convertImagesToLinks: false,
              noModals: true,
              showLowRepImageUploadWarning: true,
              reputationToPostImages: null,
              bindNavPrevention: true,
              postfix: "",
              imageUploader: {
              brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
              contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
              allowUrls: true
              },
              onDemand: true,
              discardSelector: ".discard-answer"
              ,immediatelyShowMarkdownHelp:true
              });


              }
              });














              draft saved

              draft discarded


















              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

























              2 Answers
              2






              active

              oldest

              votes








              2 Answers
              2






              active

              oldest

              votes









              active

              oldest

              votes






              active

              oldest

              votes








              up vote
              4
              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.






              share|improve this answer



























                up vote
                4
                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.






                share|improve this answer

























                  up vote
                  4
                  down vote










                  up vote
                  4
                  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.






                  share|improve this answer














                  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.







                  share|improve this answer














                  share|improve this answer



                  share|improve this answer








                  edited Nov 19 at 14:47

























                  answered Nov 19 at 10:49









                  Morten K

                  813517




                  813517
























                      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






                      share|improve this answer

























                        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






                        share|improve this answer























                          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






                          share|improve this answer












                          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







                          share|improve this answer












                          share|improve this answer



                          share|improve this answer










                          answered Nov 19 at 11:40









                          Kasper Bo Larsen

                          1,55321017




                          1,55321017






























                              draft saved

                              draft discarded




















































                              Thanks for contributing an answer to SharePoint Stack Exchange!


                              • Please be sure to answer the question. Provide details and share your research!

                              But avoid



                              • Asking for help, clarification, or responding to other answers.

                              • Making statements based on opinion; back them up with references or personal experience.


                              To learn more, see our tips on writing great answers.





                              Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


                              Please pay close attention to the following guidance:


                              • Please be sure to answer the question. Provide details and share your research!

                              But avoid



                              • Asking for help, clarification, or responding to other answers.

                              • Making statements based on opinion; back them up with references or personal experience.


                              To learn more, see our tips on writing great answers.




                              draft saved


                              draft discarded














                              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





















































                              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







                              Popular posts from this blog

                              How to change which sound is reproduced for terminal bell?

                              Title Spacing in Bjornstrup Chapter, Removing Chapter Number From Contents

                              Can I use Tabulator js library in my java Spring + Thymeleaf project?