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 / Retriving Attachment f...
Power Automate
Unanswered

Retriving Attachment from Encrypted email

(0) ShareShare
ReportReport
Posted on 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?

Categories:
I have the same question (0)
  • Rhiassuring Profile Picture
    8,690 Moderator on at

    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? 

  • v-qiaqi@microsoft.com Profile Picture
    on at

    HI @stephenJames,

    This is the flow:

    vqiaqimsft_2-1653897934816.png

    vqiaqimsft_3-1653897991888.png

     

    vqiaqimsft_1-1653897920476.png

     

     

  • stephenJames Profile Picture
    286 on at

    @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.

     

     

  • Verified answer
    v-qiaqi@microsoft.com Profile Picture
    on at

    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.

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

#2
Tomac Profile Picture

Tomac 456 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard