Issue when retrieve channel with File and folder ID

Amit Mishra 1 Reputation point
2021-10-06T10:03:22.267+00:00

Hi,

I see a strange issue when copying files in a new team. It doesn't retrieve all channels from the target Team by calling the API "https://graph.microsoft.com/beta/drives/<driveID>/root/children". It was working before and is working fine when we retrieve source channels.

But, when we click Channels->Files manually from "https://teams.microsoft.com/" it starts getting channels and also copies files. If we click only Channels but not files, it does not work.

Steps I follow:-
1> Create New team
2> Create the same channels as we have in source team template
3> Copying files and folders in newly created channels from the source channels. At this point, I face an issue that It does not retrieve all channels and fileFolderID using API "https://graph.microsoft.com/beta/drives/<driveID>/root/children".

I am using .net with c# to call this API

Could you please suggest how can I get it working?

Thanks
Amit

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

3 answers

Sort by: Most helpful
  1. CarlZhao-MSFT 40,231 Reputation points
    2021-10-08T09:23:00.74+00:00

    I tested this api locally without any problems. If you want to list all items in OneDrive, can try this api to see how:

    https://graph.microsoft.com/v1.0/me/drive/root/children
    

  2. SyncUser 6 Reputation points
    2021-11-29T12:50:14.843+00:00

    Hi Carl,

    Is there any update?

    Thanks
    Amit

    0 comments No comments

  3. SyncUser 6 Reputation points
    2022-05-27T13:05:13.92+00:00

    Any update here guys??? We are struggling everyday.

    0 comments No comments