Synology Cloud-sync makes Sharepoint Graph API are returning empty results.

Dandy Akhmad Rahadiansyah 1 Reputation point
2022-07-11T04:43:40.497+00:00

So our tenant are using 3rd party apps by using Synology Cloud-sync for the services.
and also we using this graph api for checking the items.

GET /sites/{site_id}/drive/root/delta
GET /sites/{site_id}/drive/{drive_id}/children

But meanwhile, i found some strange response issues from the sharepoint graph api when we fetching delta or item id.

  • for root folder:
    /Documents/ the files can be fetched using delta link and item id.
  • for sub folder inside
    Example /Documents/Com Data/31 Jones
    it return only the folders, but not the items. it's always returning empty results even it has many files inside it.
    Note: it's displayed well on the sharepoint web, but i cannot fetch files by the sharepoint graph api.

here my request id

  • c57c2e30-3b3f-4f98-add4-deb6631fb56a for path /Documents/Com Data/
  • 4bd0bf4d-541f-468f-9969-84ca01a14a53 for path /Documents/Com Data/31 Jones/

Any idea how to solve this issue?
Thanks

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
10,017 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Zehui Yao_MSFT 5,811 Reputation points
    2022-07-20T08:51:12.803+00:00

    Hi @Dandy Akhmad Rahadiansyah ,
    Per my test, you can list all the files in the subfolder like this:

    https://graph.microsoft.com/v1.0/sites/{site-id}/drive/root:/Folder/subfolder:/children

    222569-untitled.png

    And you can use get files in subfolders like this:
    https://graph.microsoft.com/v1.0/sites/{site-id}/drive/root:/Folder/subfolder/{item-path}

    222645-untitled2.png

    Hope this can help you.


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
    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.