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

Community site session details

Session Id : 5PewKQiUGEUFPQBc33Pq7R
Power Automate - Building Flows
Answered

Retriving Attachment from Encrypted email

Like (0) ShareShare
ReportReport
Posted on 26 May 2022 18:44:57 by 286

Hello,

 

I get an encrypted email through outlook every 2 weeks that contains a single excel document. I have tried to create a flow that monitors the inbox for emails with specific subject titles , grabs the excel attachment and saves it to a OneDrive folder. But after following a couple of guides i get error messages like

 

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.

 

 

Has anyone successfully been able to do this and wouldn't mind pointing me in the right direction?

I have the same question (0)
  • Verified answer
    v-qiaqi@microsoft.com Profile Picture
    on 31 May 2022 at 08:10:58
    Re: Retriving Attachment from Encrypted email

    Hi @stephenJames ,

    Here is the thing, the RPMSG file is a protected email message file created by Microsoft Outlook, Microsoft's email and calendar application.

     

    It contains an email that has been encrypted such that only certain users can view, print, copy, or forward the email. RPMSG files are sent as attachments to standard email messages, these attachments use the filename as  message.rpmsg.

     

    Power Automate does not support related actions to parse encrypted email, so I am afraid that Power Automate could only return message.rpmsg file name if you receive an encrypted email.

  • stephenJames Profile Picture
    286 on 31 May 2022 at 07:45:32
    Re: Retriving Attachment from Encrypted email

    @v-qiaqi-msft 

    Mine fails to work as yours shows. 

    Here is my flow 

    flow.png

     

    When it runs it outputs

    flowresult.png

     

    The file in that test was a dummy txt file. But no matter what attachment is in the encrypted email it always returns the same message_v2.rpmsg file.

     

     

  • v-qiaqi@microsoft.com Profile Picture
    on 30 May 2022 at 08:07:00
    Re: Retriving Attachment from Encrypted email

    HI @stephenJames,

    This is the flow:

    vqiaqimsft_2-1653897934816.png

    vqiaqimsft_3-1653897991888.png

     

    vqiaqimsft_1-1653897920476.png

     

     

  • Rhiassuring Profile Picture
    8,688 Moderator on 26 May 2022 at 22:38:15
    Re: Retriving Attachment from Encrypted email

    Are you able to show us screenshots of how your flow is set-up, as well as screenshots of the details of the trigger output (go into a flow that has run, and show the outputs in the top action, in the attachments section) where an email has come through? 

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Tom Macfarlan – Community Spotlight

We are honored to recognize Tom Macfarlan as our Community Spotlight for October…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 626 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 374 Moderator

#3
Expiscornovus Profile Picture

Expiscornovus 284 Most Valuable Professional

Last 30 days Overall leaderboard
Loading complete