web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / When Attachment Receiv...
Power Automate
Unanswered

When Attachment Received in email, add attachment to Sharepoint Item

(0) ShareShare
ReportReport
Posted on by 2

Hi there - Need some urgent help is possible!

 

I'm wanting to setup a flow that when an email is received to a shared mailbox, WITH AN ATTACHMENT, that it automatically takes the attachment and uploads it to a sharepoint list item.

 

I've got a control condition setup, so that IF the FROM EMAIL is the same as the Sharepoint LIST ID EMAIL collum it gets the attachment and adds it to the list. But it's failing on add attachment each time.

 

Screenshot 2023-11-09 at 13.01.25.png

 

Urgent help please!

Categories:
I have the same question (0)
  • grantjenkins Profile Picture
    11,063 Moderator on at

    Hopefully this is what you're after. Note that I haven't used a Shared mailbox for this example, but would work the same. I'm also assuming you have a Person column in your list for the Managers. For this example, I have a Person column called Manager.

     

    See full flow below. I'll go into each of the actions.

    grantjenkins_0-1699670455215.png

     

    When a new email arrives (you would have your Shared Mailbox trigger here) is set to Include Attachments and Only with Attachments.

    grantjenkins_1-1699670504814.png

     

    Get items uses the following Filter Query to retrieve the manager that sent the email.

    Manager/EMail eq '@{triggerOutputs()?['body/from']}'

    grantjenkins_2-1699670579785.png

     

    Apply to each Attachment iterates over each of the attachments.

    grantjenkins_3-1699670609136.png

     

    Get Attachment uses the Message Id and Attachments Attachment Id to retrieve the content from the current attachment.

    grantjenkins_5-1699670706947.png

     

    Apply to each Manager will iterate over the Manager that was returned in Get items. Note that even though we have a loop here, it will only iterate once since only one Manager should have been returned.

    grantjenkins_6-1699670759986.png

     

    Add attachment adds the attachment to the Managers record. It uses the ID and Manager Display Name from the Get items action, and the Attachments Name and Content Bytes from Get attachment.

    grantjenkins_7-1699670896130.png

     

    After the flow runs, you should see the attachments added to the Managers record.

  • martyrobb Profile Picture
    2 on at

    Confused on what you mean by Manager?

     

    When a form is submitted, we have PowerAutomate automatically populate a word document from the form. The word document being the contract we send to them. It then creates an item in a Sharepoint List and adds the document to the list. 

     

    IDEALLY - I'd want powerautomate to send the document to their email and ask them to sign it then upload it back to the sharepoint item but that's not going to work and is too much effort for it to probs not work.

     

    SO, we have it send 2 emails to them - one says welcome and attaches the populated document. Then it sends another document asking them to return the document signed, i've set it so that when they reply to that email - it redirects to a specific shared mailbox.

     

    I want to create another powerautomate automated flow, so that when that shared mailbox receives an email with an attachment that it detects the email address the email was sent from, and then adds the attachment to the sharepoint item that has a matching email address.

     

    Hope that makes sense!!

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 612

#2
Valantis Profile Picture

Valantis 344

#3
11manish Profile Picture

11manish 326

Last 30 days Overall leaderboard