Skip to main content
Community site session details

Community site session details

Session Id :
Power Automate - Using Flows
Unanswered

Export email attachments into a SharePoint folder. Error

(0) ShareShare
ReportReport
Posted on by

This is the message I get is

 

The execution of template action 'Apply_to_each' failed: the result of the evaluation of 'foreach' expression '@items('Apply_to_each_2')' is of type 'Object'. The result must be a valid array.

 

Anyone else know about this error? Thanks to all

 

 

TedFSG_0-1617028112441.png

 

  • ScottShearer Profile Picture
    25,230 Most Valuable Professional on at
    Re: Export email attachments into a SharePoint folder. Error

    See my example below:

    image.png

     

     

  • Community Power Platform Member Profile Picture
    on at
    Re: Export email attachments into a SharePoint folder. Error

    So we're good till now. But how do I create a folder to put the attachments in simultaneously. Is it at all possible?

  • ScottShearer Profile Picture
    25,230 Most Valuable Professional on at
    Re: Export email attachments into a SharePoint folder. Error

    @Anonymous 

    The Export email action creates a .eml file.  See my example below if you want to save the email attachments to a SharePoint library.

    image.pngimage.png

     

     

  • Community Power Platform Member Profile Picture
    on at
    Re: Export email attachments into a SharePoint folder. Error

    Sure👍

    A)

     

    TedFSG_0-1617041870719.png

    B)

    TedFSG_1-1617041892116.png

     

  • ScottShearer Profile Picture
    25,230 Most Valuable Professional on at
    Re: Export email attachments into a SharePoint folder. Error

    @Anonymous Can you post a screen shot of your Flow in design/edit view?  That will be a big help to those who would like to assist.

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

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 497 Super User 2025 Season 1

#2
David_MA Profile Picture

David_MA 436 Super User 2025 Season 1

#3
Riyaz_riz11 Profile Picture

Riyaz_riz11 244 Super User 2025 Season 1

Featured topics

Restore a deleted flow