web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Sent email when a new ...
Power Automate
Answered

Sent email when a new folder is created

(0) ShareShare
ReportReport
Posted on by 68

Hi,

 

is there a way to send an email when a new folder is created on a SharePoint the folder name is a part of the email address,

Tha folder name is a number that can be 1 to 4 digits, for example for folder 12 email address would have format like EDU0012@edu.cbc 

 

Thanks

Z

 

 

Categories:
I have the same question (0)
  • Verified answer
    eric-cheng Profile Picture
    5,171 on at

    Hi @72Zib ,

     

    Please refer to my post here.

     

    There may be an easier way but you could use an if() expression to check the length() of the folder name.  If 1, then concat() 000, If 2, then concat() 00 etc.  Will be a pretty long expression.

     

    You could also use conditions or a switch statement.

     

    --------------------------------------------------------------------------
    If I have answered your question, please mark my post as a solution
    If you have found my response helpful, please give it a thumbs up

    Connect on LinkedIn

  • 72Zib Profile Picture
    68 on at

    is there a way to make the folder name to be always 4 digits like 66 be converted to 0066?

  • eric-cheng Profile Picture
    5,171 on at

    Hi @72Zib ,

     

    Sure.

     

    Use the concat() expression and replace xxxx with the name from your trigger

     

    @concat('EDU',triggerOutputs()?['body/{Name}'],'@edu.cbc'

     

    Screenshot_20210822-001855_Chrome.jpg

    --------------------------------------------------------------------------
    If I have answered your question, please mark my post as a solution
    If you have found my response helpful, please give it a thumbs up

    Connect on LinkedIn

  • 72Zib Profile Picture
    68 on at

    Thanks,

     

    Is there a way to convert the folder name to the format i need and use that name as email address?

     

    Tha folder name is a number that can be 1 to 4 digits, for example for folder 12 email address would have format like EDU0012@edu.cbc 

     

    Thanks

  • eric-cheng Profile Picture
    5,171 on at

    Hi @72Zib ,

     

    You can use the when a file is created trigger and the IsFolder property.

     

    It will return true if its a folder

     

    Screenshot_20210821-224742_Chrome.jpg

     

    --------------------------------------------------------------------------
    If I have answered your question, please mark my post as a solution
    If you have found my response helpful, please give it a thumbs up

    Connect on LinkedIn

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 245 Super User 2025 Season 2

#2
Expiscornovus Profile Picture

Expiscornovus 207 Most Valuable Professional

#3
trice602 Profile Picture

trice602 185 Super User 2025 Season 2

Last 30 days Overall leaderboard