A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
Hi DPD SP User 1,
Thank you for reaching out regarding the issue you're experiencing with fetching the task list using the SharePoint API.
It appears that this might be related to the specifics of the API you're using to develop your application. Here are a few suggestions that may help:
1. Check List Type: The Tasks app creates a unique list type that may not appear in the results from the general lists API. You might want to try querying directly by the list title.
2. Use the Correct API Endpoint: You can attempt to fetch the task list using the following endpoint:
https://XXXX.sharepoint.com/_api/web/lists/getbytitle('YourTaskListTitle')
Make sure to replace 'YourTaskListTitle' with the actual title of your task list.
3. Include $select or $filter: To refine your results, consider using parameters like $select to limit the fields returned or $filter to search for specific lists.
4. Permissions: Double-check that you have the necessary permissions to access the task list, as this can prevent it from appearing in your API results.
5. PowerShell Tools: If you continue to encounter issues, using SharePoint Online Management Shell or PnP PowerShell might provide additional clarity.
6. Hidden Lists: Also, verify if the list is set to be hidden from the user interface, as this may affect its visibility in API calls.
Given the API-related nature of your question, I recommend posting in the SharePoint Developer Community under the API tag if above suggestion didn't work to you. This will allow you to connect with others who may have faced similar challenges and can provide tailored advice.
I hope these suggestions help, and please let me know if you have any further questions!
Best regards,
Sophia