Forum Discussion
CreateChannel in GraphAPI sometimes results in not creating the corresponding Sharepoint/OneDrive
sgsmittal When you create channel using graph api, the current behavior is to visit "Files" and then corresponding SharePoint will be created. let me check.
- Jo_77May 19, 2020Copper Contributor
Abhijit_MSFT We're also trying to provision a team through Graph API. Requirement is to create tabs on a few channels that will display documents, but that's not currently possibly as the Folder associated with the Channel does not get created so we can't copy the corresponding documents in to the Team. This happens both when the channel is created via a JSON call to /teams with the team template in the body, and when the channel is created via a call to /teams/{teamId}/channels.
Querying /teams/{teamId}/channels/{newChannelId}/filesFolder after channel creation returns a 404 Not Found error: "Sharepoint folder not found".- sgsmittalJun 09, 2020Copper Contributor
Jo_77 Abhijit_MSFT I solved it for now by creating folder/driveitem in sharepoint document library after the success api call to create channel
- ymanatosJan 27, 2021Copper Contributor
sgsmittal said "I solved it for now by creating folder/driveitem in sharepoint document library after the success api call to create channel"
Hello, can you please elaborate on how exactly you solved it, i.e. using GraphAPI or else?
I urgently need a solution to this problem (standard channel, application permissions) and I hope that your solution might will work for me as well.
- sgsmittalMay 06, 2020Copper Contributor
Hi Abhijit_MSFT,
Hope you are doing good
Sure but that will impact the automated process as we have to provision folders as well under file tab in the process (we create team -> then channels -> then folder structure under file tab)
but due to above issue when we try to get files tab Folder using graph api we get error share point folder not found. we can't ask user to visit file tab of each channel as everyday there will lot of team be created automatically with folder structure.
Is there any api using that I can force to create the folder in Sharepoint if that is a current behavior ?
- sgsmittalMay 08, 2020Copper Contributor
Abhijit_MSFT Did you get a chance to check this ?