Forum Discussion
Retrieve Channel Folder with Graph API returns 502 Bad Gateway
- Jan 17, 2020
ck1521, Could you please give try to following api call:
https://graph.microsoft.com/v1.0/sites/{site-id}/drive/root/children/
ck1521, Could you please give try to following api call:
https://graph.microsoft.com/v1.0/sites/{site-id}/drive/root/children/
- prashantguptagFeb 04, 2020Brass Contributor
Trinetra-MSFT I am also having the same issue. I am trying to get the site url of a private channel and since private channel has separate site collection so this url https://graph.microsoft.com/beta/groups/{team-id}/drive/root/children does not provide the desired result.
To get private channel site url, I am using https://graph.microsoft.com/beta/teams/group-id/channels/private-channel-Id/filesFolder but this throws 502 bad gateway in one tenant but in other tenant it works. I tried all possible ways to fix it i.e. by changing permissions to the app but it didn't work and I am stuck. Could you suggest why I am facing this issue in one tenant and is there any other way to get private channel site collection url?
Please note that, before sending a request to this given url I am sending another request to get all private channels and that works in both the tenants but this one fails.
-Prashant.
- Paul KieperJun 12, 2020Copper Contributor
prashantguptag I'm having the exact same issue.
- ck1521Jan 17, 2020Copper Contributor
Trinetra-MSFT Thanks for your help.
This API worked and it looks like a suitable substitute for what I've been trying, thanks.
Just one more thing, if the channel has somehow been renamed, would there be any ways to track it back to the original folder?