cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
powertube
Level: Powered On

Attach file from SPO Document Library toMail which has same ID than SPO list item

Hi all, 

 

I build an app to collect informations about customer meetings. 
The collected informations will be stored in an spo list, so each customer meeting will create a new spo list item.

this spo list item gets an unique id.  (f.e. = xr4rt5)

Users can also take a image from the customers business card which will be stored in a spo document library with the same id xr4rt5.jpg.

 

Also I've build a flow which sends an email to the user who created the list item (spo list column name =created by)

which contains a html table with the informations stored in the spo list. 

 

Is there a way to attach the business cards image which belongs to the spo list item to this mail?
When attachment isn't possible, also a link to the spo document library item would work also.

 

 

4 REPLIES 4
Super User
Super User

Re: Attach file from SPO Document Library toMail which has same ID than SPO list item

Hey @powertube 

 

Yes it can be done. Please refer to the screenshot below: sfa.png

In the screenshot you can see that I am trying to get the file content using the action and in that the identifier is "Base" that comes from the trigger action (When an Item is created). I used file because you mentioned that the image is being stored in the shared doc library but if it is an attachment along with the item, please use "Get Attachmnet Action". 

 

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!

powertube
Level: Powered On

Re: Attach file from SPO Document Library toMail which has same ID than SPO list item

@yashag2255 

Thanks. Do you know where i have to place your flow? 

Actually my flow has 3 steps: 

1. If new item is created in spo list

2. get my profile 

3. send mail (mailbody contains fields from spo list) 

 

Don't i need a new step which: 

 

  • Get ID from the new created list item 
  • LookUp in spo document library if there is an image which has same name as the list item ID
  • Attach this to the mail

 

 

Anmerkung 2019-06-11 110609.pngAnmerkung 2019-06-11 110640.png

powertube
Level: Powered On

Re: Attach file from SPO Document Library toMail which has same ID than SPO list item

Bump.
Can someone help?
Super User
Super User

Re: Attach file from SPO Document Library toMail which has same ID than SPO list item

HI @powertube 

 Apologies! I some how missed your response. 

 

Here are the changes you need to make: 

 

After the when a new item is created action of your flow, add the Get File Content action as I have shown in my flow. IN the Get file content, you can use the data from the above step (when an item is created and you get the ID from here itself. Use this in the Get File action to identify the attachment) and then you will have the get profile action and then the send email action. in the send email action, simply add the attachment as I have shown in the screenshot. 

 

Hope this Helps!

Helpful resources

Announcements
firstImage

Microsoft Business Applications Virtual Launch Event

Watch the event on demand for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

firstImage

Watch Sessions On Demand!

Continue your learning in our online communities.

Power Platform 2019 Release Wave 2 Plan

Power Platform 2019 Release Wave 2 Plan

Features releasing from October 2019 through March 2020.

thirdimage

Flow Community User Group Member Badge

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

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

sixthImage

Power Platform World Tour

Find out where you can attend!

seventhimage

Webinars & Video Gallery

Watch & learn from the Flow Community Video Gallery!

Top Kudoed Authors
Users Online
Currently online: 214 members 4,867 guests
Please welcome our newest community members: