Forum Discussion
hidayat3676
May 18, 2021Copper Contributor
Can't Get Files of channels from team using graph api
Hi, I've an Oauth App created in AAD thorough which i can access teams, channels and channels messages including attachments but not getting attachment content using the same token. following as...
hidayat3676
May 20, 2021Copper Contributor
Nikitha-MSFT This does not return files shared in team channels.
Can You please clarify if it is possible to access the file using api or not with relevant source if we can get it?
Can You please clarify if it is possible to access the file using api or not with relevant source if we can get it?
Nikitha-MSFT
May 26, 2021Former Employee
hidayat3676 _ you will receive the file shared in the channel using Get files folder, which give the information about the file but it does not provide file content. If you want to get the file content you need to get the message when you shared the file in channel and usinng that message id get the file content using Get the raw contents of a file attachment on a message.