Hi all,
I have a sharepoint flow which I created to do the following:
send an email to everyone when a new folder is created in sharepoint. To stop lots of emails going out with a link to every file uploaded to this folder, I put a condition in the workflow to only send an email if the file extension name does not contain the decimal point... this stopping hundreds of individual emails going out each with one link to one file.
But then I realised that some of the folders have sub folders and then I am back to square 1 with lots of emails going out with one email with link to the new folder and 10 individual emails going out each with their own sub folder link.
So I used another condition to tell it to not send an email out if the item in the library has a decimal point in the extension name and also if the new item which should be a folder starts with '20' (the year, as the date is backwards).
unfortunately this doesn't work and doesn't send an email out at all.
any suggestions on how to get this to work?
Wayne
Solved! Go to Solution.
Hi @buro2020 ,
If you want to send team post if the folder name begin with '20', you could add another Condition to check it.
Best regards,
Alice
Community Support Team _ Alice Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @buro2020
When a file or folder created in Document Library you can check it by "IsFolder" Property. for files it will false and for Folder it will be true.
So use triggerBody()?['{IsFolder}'] property in your condition.
-------------------------------------------------------------------------
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.
Thank you.
Would this solve the problem with it only sending a teams post if the folder name begins with the numbers '20' ?
I am trying it now, I do have a delay on sending the post to teams - just to make sure sharepoint syncs everything in the folder; especially ones with large files.
wayne
Hi @buro2020 ,
If you want to send team post if the folder name begin with '20', you could add another Condition to check it.
Best regards,
Alice
Community Support Team _ Alice Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.
Announcing a new way to share your feedback with the Power Automate Team.
Learn to digitize and optimize business processes and connect all your applications to share data in real time.
User | Count |
---|---|
72 | |
23 | |
17 | |
17 | |
13 |
User | Count |
---|---|
125 | |
34 | |
31 | |
28 | |
26 |