cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
pal95
Helper V
Helper V

Attach a picture from Sharepoint Library to Email

Hi, I have a Sharepoint List called 'List' and a Sharepoint Document Library called 'Pictures'.

I have a flow that will send me an email each time when there is a new item in the 'List'. 

 

I would like to add the following functionality - for each email, I would like all the pictures from today in the 'Pictures' Library added as an attachment. Is that possible?

 

I have a simple flow so far:

 

pal95_0-1629811781100.png

 

But I don't see any option like 'get library' and then filter today's inputs; it's just for items. Does anyone have an idea on how to make it?

 

Thank you!

3 REPLIES 3
v-LilyW-msft
Community Support
Community Support

Hi @pal95 

You can use Get files Action to get the files in the library and filter out the files that meet the conditions.

Assume i have a library like this, I will filter date is equal to today's Pictures and send an email.

vLilyWmsft_0-1629866627176.png

Flow in details:

vLilyWmsft_8-1629868207514.png

vLilyWmsft_1-1629867350754.png

vLilyWmsft_3-1629867746215.png

vLilyWmsft_7-1629868102840.png

vLilyWmsft_5-1629867813095.png

After flow runs, I will receive an email with attachments as below:

vLilyWmsft_6-1629867881659.png

Hope the content above may help you.

Best Regards

If my solution helps, then please consider Accept it as the solution to help the other members find it more quickly.

Looks good, I will try that and accept if that works fine!

Hi, I have the following issue:

The 'inputs.parameters' of workflow operation 'Send_an_email_(V2)' of type 'OpenApiConnection' is not valid. Error details: The API operation 'SendEmailV2' is missing required property 'emailMessage/Attachments/0/Name'.

 

Here we have some screenshots related to my flow:

 

Beginning of the code of the attachment:

pal95_0-1629901127211.png

 

Flow:

pal95_1-1629901162325.png

 

pal95_2-1629901215793.png

 

pal95_3-1629901257071.png

 

Could you please let me know what may be wrong there? Thank you!

 

 

 



Helpful resources

Announcements
Power Automate News & Announcements

Power Automate News & Announcements

Keep up to date with current events and community announcements in the Power Automate community.

Power Automate Community Blog

Power Automate Community Blog

Check out the latest Community Blog from the community!

Top Solution Authors
Users online (3,694)