Hi all,
I had a working Flow which had a Team channel message trigger and would create approvals out of them.
The general workflow was person A sends a mail with attachments to the channel address, this would create a message in the channel and trigger the Flow. The Flow then goes into a for each loop for every attachment and gets the sharepoint URL for the attached file and append it to a list. Then the approval is created with the list of attachments, so that they can be opened directly from the approval.
This was all working fine and great until a few weeks ago (it was rarely used so maybe the issue occured earlier)
Now I have the problem that from Teams I get the file path like this:
"/Shared Documents/Apps/Microsoft Teams Mailhook/Freigabe/EmailMessages_4_2025/Some_file_name.pdf"
But it only works when I use the German path like this:
"/Freigegebene Dokumente/Apps/Microsoft Teams Mailhook/Freigabe/EmailMessages_4_2025/Some_file_name.pdf"
I guess something happened in Sharepoint that the directory now has a German name instead of the English one.
What would you say is the best approach to get the correct file path?
Just replace "Shared Documents" in the string by "Freigegebene Dokumente"? Maybe include a check before that checks if "Shared Documents" is in the string, to catch any errors.
Thanks!
Bjarne