Hi All,
Wondered if you could help me with this strange issue I am getting.
I am using power Automate to update Channel names based on a update to a SQL DB. As there is no built in action to update channel names I am using the Graph API.
Here is a preview of Sharepoint, the top folder was created when the Channel was created, the second was created after the flow has ran to rename the channel.
Here is the HTTP PATCH request I am doing:
Am I missing something with the Body of my HTTP request?
Any help is greatly appreciated here.
Thanks,
Danny
Hi Wearsky,
I managed to sort it in the end. It seemed to be when the team was created it didn't initialise the folder.
So when I did a rename at that point it initialised it and created a new one with the new name.
We were creating the Channel via Power Automate then renaming using the Graph API.
What I had to do was do a Graph API GET request to the filesFolder URL, this then initialised the original folder and when we renamed the team it kept this folder instead of creating a new one
Get filesFolder - Microsoft Graph v1.0 | Microsoft Docs
Cheers,
Danny
Hi @MrDannyHarry ,
I followed your steps and did a test but I didn't encountered the problem.
I used Http action in flow to create a channel called 'Test100'.
Then I used Http action again to patch this channel to modify its Displayname.
If you create a new file in the existing folder before changing the channel name, will it solve the problem?
Best Regards,
Wearsky
Hi Oliver,
I have done some testing and the way I can replicate it is the following:
Doing this seems to create a new folder with the new name
Hi @MrDannyHarry ,
Are you talking about the folders inside the Documents document library on the connected SharePoint site of the Team in question, where you have a folder for each channel? I cannot reproduce that issue. When I change a channel's displayName using the Graph API like you do, I do not get a new folder. Mind you, I did not actually test this using Power Automate, I just performed the exact same query via the Graph Explorer website.
I don't know if anyone else here can reproduce this issue?
WarrenBelz
146,605
Most Valuable Professional
RandyHayes
76,287
Super User 2024 Season 1
Pstork1
65,946
Most Valuable Professional