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 / Save attachments to a ...
Power Automate
Unanswered

Save attachments to a sharepoint library

(0) ShareShare
ReportReport
Posted on by 78

Hi Team,

 

Good day to you all. I am new to power automate usage and wanted to achieve an option below.

 

SharePoint Document Library: Email Reports

Shared Mailbox: emailreport@abc.com

 

I have created a service account(srv-act@abc,com) in Office 365 and assigned a Business Basic License and provided mailbox delegation to the above mentioned shared mailbox.

 

I wanted to create a flow under my service account where emails with attachments should be saved to above mentioned SharePoint Document Library. Please note that this service account has full control to the SharePoint site and respective document library. 

 

I have tried a manual and using built in templates but none of the options are positive on my end.

 

Please assist on the same.

 

Thanks,
Ram

Categories:
I have the same question (0)
  • AnthonyAmador Profile Picture
    2,553 Moderator on at

    Hi @ram_ESP 

     

    Try something like this.

    AnthonyAmador_0-1626185493851.png

    AnthonyAmador_1-1626185508742.png

     

    It works for me, hope this can help you. 

    Cheers. 

     

  • ram_ESP Profile Picture
    78 on at

    Hi Anthony Amador,

     

    Thank you for your response. I received an error below when I use my service account which has all apps subscribed via basic license. If I add my account which is not a service account and just a E3 and that connection works. 

     

    What could have happened to this service account? Should I re-create this service account from scratch?

     

    ram_ESP_0-1626186044513.png

    Thanks,
    Ram

     

  • ram_ESP Profile Picture
    78 on at

    Adding to my previous reply, that service account is still running another flow. Should I use different account for this flow? Or I can use single account for multiple flow connection?

     

    Thanks,

    Ram

  • ram_ESP Profile Picture
    78 on at

    Hi Anthony,

     

    I received the below error when I use "When an email arrives to a shared Mailbox" option.

     

    The specified object was not found in the store., The process failed to get the correct properties.
    clientRequestId: 1b7c3648-db6d-4919-b6ab-84ad009eb2b9
    serviceRequestId: 5608c8bd-26cd-419b-99a2-2762744f28c8

     

    ram_ESP_1-1626188165890.png

     

    I had used my another account as connection here and not the service account. Because service account failed connection as per my previous response screen shot.

     

    Thanks,

    Ram

     

  • ram_ESP Profile Picture
    78 on at

    Noticed another error when I click Inbox on the shared Mailbox folder field in the power automate flow first step.

     

    ram_ESP_0-1626188529445.png

     

     

    Thanks,

    Ram

  • AnthonyAmador Profile Picture
    2,553 Moderator on at

    Hi @ram_ESP 

     

    In this link you can check the differences between the business plans, the basic plan does not include Outlook so that could be the problem. You can check it by clicking on the three dots and try adding a new connection. 

     

    AnthonyAmador_1-1626193494780.png

     

    You can use the same account for different flows, you don't have to create different accounts for other flows. 

     

    I think the problem could also be the permission to access the shared mailbox, in this link you can check how to add members to a shared mailbox, one way to check if you already have access is to try access the shared mailbox from the Outlook account you are using, permissions can take up to 60 minutes to take effect. 

     

    AnthonyAmador_2-1626198043753.png

     

    Hope this can help you. 

     

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

    If you would like to create a ticket with Microsoft Customer Support here is a link on how to do so: https://docs.microsoft.com/en-us/power-platform/admin/get-help-support/

     

     

     

     

     

     

     

     

  • ram_ESP Profile Picture
    78 on at

    Hi Anthony,

     

    I created a new shared mailbox and used a E3 licensed user for connection in Power Automate. Also created a condition to check "Has Attachments" contains "True" then create a file in SharePoint document library. 

     

    I see the files are dropping now.

     

    I need to check if I can add a column name as "Email Sender" in SharePoint document library and to add the value original sender those who are sending email to shared mailbox. Is this possible?

     

    Thanks,
    Ram

  • Verified answer
    AnthonyAmador Profile Picture
    2,553 Moderator on at

    Yes, its definitely possible. 

     

    Use the action "update file properties" after creating the file, if you add the column in the document library it should look like this.

    AnthonyAmador_0-1626211943602.png

    Hope this helps.

    Cheers.

     

     

     

     

  • ram_ESP Profile Picture
    78 on at

    Hi Anthony,

     

    I did the same steps. Noticed that attachments are getting saved in the sharepoint document library.

     

    I have created a column in Sharepoint document library as email sender and added "From" into the field as per your screen shot. My flow worked and noticed atatchment on the library. However, email sender column not getting updated and received an error below:

     

    ram_ESP_0-1626258129228.png

     

     

    Resource could not be discovered.
    clientRequestId: 96d0781a-439e-46a8-9787-124717d96456
    serviceRequestId: 3393c4d5-c3b9-436a-a485-8ab8582e084d

    Thanks,

    Ram

  • ram_ESP Profile Picture
    78 on at

    HI Anthony

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

#2
Tomac Profile Picture

Tomac 364 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard