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 / File Email based on Su...
Power Automate
Unanswered

File Email based on Subject into SharePoint

(0) ShareShare
ReportReport
Posted on by 4

Hi All,

 

I am new to Power Automate functionality.

I need some expert guidance and help.

 

I am looking to do up an automated email filing system into Sharepoint.

Incoming emails go into shared mailbox > Subject of emails will contain project name '20201111', could be in the front or the back or middle. > Retrieve the project name > export out the email > store it into SharePoint under Project 20201111.

 

I managed to get the exporting of email and store in SharePoint working.

How do I search for the project name in the subject then store it into SharePoint?

 

Thanks in Advance!

Categories:
I have the same question (0)
  • abm abm Profile Picture
    32,865 Most Valuable Professional on at

    Hi @LJS

     

    You need to follow some standard in your subject line such as project name with single quotes around it.

     

    Project name '20201111'

     

    If you don't follow any standard and relies on numeric values only to obtain the project name then you need to check every single character and find whether its numeric or not. So to achieve this you need to do lots of string manipulations and comparisons.

     

    For the above single quotes standard you could use a split expression to get the values.

     

    Thanks

     

  • LJS Profile Picture
    4 on at

    Hi @abm 

     

    Thanks for the advise, it will be [20201111] .

    The project code will always be 8 digits.

  • abm abm Profile Picture
    32,865 Most Valuable Professional on at

    Hi @LJS 

     

    Thanks for your reply. This is what you need.

     

    image.png

     

    The expression I used above is as follows:

     

    first(split(last(split(outputs('Compose'),'[')),']'))
     
     
    Thanks

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