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 / How to create new fold...
Power Automate
Unanswered

How to create new folder based on certain string on outlook header

(0) ShareShare
ReportReport
Posted on by
Hi community, I need your help (I already search about this particular problem, and no one have the same issue as me, so I need your help).
 
So, I tried to create a flow based on trigger action If a new email arrives (V3), with trigger words in my email (e.g Welcome Back). I want to create new folder inside of my SharePoint based on the name inside of subject/header in outlook (e.g., Alan Walker - Welcome Back). I want to create a new folder with Alan Walker and save the attachment file that I received (with Welcome Back trigger words before) inside the Alan Walker folder.
 
Can someone solve this problem? I already tried creating Initialize Variable action but have a hard time extracting the Alan Walker before, so I can create a new folder based on that name.
Categories:
I have the same question (0)
  • Expiscornovus Profile Picture
    33,189 Most Valuable Professional on at
     
    You could use slice & indexOf functions for this in an expression. With those functions you can find the place of the - character and slice away the part of the string after that character. I also used a trim function just to remove any unwanted space characters.
     
    Try the below expression in your Initialize variable action
     
    trim(slice(triggerOutputs()?['body/subject'], 0, indexOf(triggerOutputs()?['body/subject'],'-')))

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
Michael E. Gernaey Profile Picture

Michael E. Gernaey 522 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 364 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard