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 / Parse portion of Email...
Power Automate
Unanswered

Parse portion of Email Attachment File name to look up SharePoint List

(0) ShareShare
ReportReport
Posted on by

I'm fairly new to Power Automate and haven't been able to figure out how to do the following:

 

Email comes in with an attachment, I need to forward the email and attachment to a specific distribution group based on the first portion of the attachment's file name.  The list of all the distribution groups are in a SharePoint List.  I just don't know how to parse the attachment's file name so it can be used to look up the distribution group's email address.  Example of a file name: 

 

Shaws-Inventory_May 2020

 

Shaws is the identifier on my list and the distribution email connected with it will be used in the email that gets forwarded.

Categories:
I have the same question (0)
  • Pstork1 Profile Picture
    68,678 Most Valuable Professional on at

    Assuming that the filenames are always in the form of Identifier followed by a '-' you can simply do a split() of the filename based on the '-' character.  Then the identifier will be the first entry in the resulting array.

  • Community Power Platform Member Profile Picture
    on at

    Well you could write an expression to find the first "-" character, the extract the portion of the string upto, but not including that position. Use Compose action with substring and indexof.

     

    Or

     

    You could use the split expression, which returns an array of strings with each element being a part of the split:

     

    eg:   split ( 'abc-def-ghijk','-')    =>   ['abd', 'def', 'ghijk']  then take only the first element into your variable.

     

     

     

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 463 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 427 Moderator

#3
abm abm Profile Picture

abm abm 245 Most Valuable Professional

Last 30 days Overall leaderboard