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

Announcements

News and Announcements icon
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)
  • 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

  • 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 ,

     

    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

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

  • 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

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 283

#2
David_MA Profile Picture

David_MA 256 Super User 2026 Season 1

#3
Expiscornovus Profile Picture

Expiscornovus 225 Most Valuable Professional

Last 30 days Overall leaderboard