cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
harneet27
Level: Power Up

Saving Email Attachment to sharepoint with metadata from subject or body of the email.

Hello
I need some help extracting metadata from my email and saving the attachment automatically every time i get an inbox. I've been trying to do this on my own by just googling answers but havent been succesful. 

My sharepoint document library / list whichever works better.  My three columns of metadata are Area Signature desc. Ideally this information would be in the subject of the email separated by a delimiter.

EX. 

Email Subject : Finance; CFO; Invoice
Attachment name : file123.pdf

I'd Like my sharepoint to save the file as: 
File name          Area       Signed     Desc.
File123.pdf        Finance   CFO         Invoice

Any help would be greatly appreciated! Thank you!


1 ACCEPTED SOLUTION

Accepted Solutions
Dual Super User
Dual Super User

Re: Saving Email Attachment to sharepoint with metadata from subject or body of the email.

Hi @harneet27 

 

Please see the screenshots below:

S1.PNG

 

S2.PNG

 

Expressions:

Variable: split(triggerBody()?['Subject'],';')

Test: variables('syb')[0]
Test 2: variables('syb')[1]
Test3: variables('syb')[2]

Here, test, test 2, and test3 are the metadata columns on my SP library and the split function is used to split the subject at ';'. 

 

Hope this Helps!

If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

View solution in original post

1 REPLY 1
Dual Super User
Dual Super User

Re: Saving Email Attachment to sharepoint with metadata from subject or body of the email.

Hi @harneet27 

 

Please see the screenshots below:

S1.PNG

 

S2.PNG

 

Expressions:

Variable: split(triggerBody()?['Subject'],';')

Test: variables('syb')[0]
Test 2: variables('syb')[1]
Test3: variables('syb')[2]

Here, test, test 2, and test3 are the metadata columns on my SP library and the split function is used to split the subject at ';'. 

 

Hope this Helps!

If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

View solution in original post

Helpful resources

Announcements
firstImage

Power Platform Online Conference

Join us for the first ever Power Platform Online Conference!

firstImage

Incoming: New and improved badges!

Look out for new contribution recognition badges coming SOON!

firstImage

New & Improved Power Automate Community Cookbook

We've updated and improved the layout and uploading format of the Power Automate Cookbook!

thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Power Platform World Tour

Find out where you can attend!

seventhimage

Webinars & Video Gallery

Watch & learn from the Power Automate Community Video Gallery!

Top Solution Authors
Top Kudoed Authors
Users online (5,052)