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 / error when trying to m...
Power Automate
Answered

error when trying to move outlook emails older than 20 mins to onedrive

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hi All,

 

Good Morning/Evening.

 

i am trying to move the specific email from my outlook to onedrive which are 20 mins old. i am getting bellow error at the stage for each  condition "The execution of template action 'Apply_to_each' failed: the result of the evaluation of 'foreach' expression '@triggerOutputs()?['body/body']' is of type 'String'. The result must be a valid array.

 

could you please suggest how to resovle this issue. Thanks in advance.

flow.PNG
Categories:
I have the same question (0)
  • v-bofeng-msft Profile Picture
    Microsoft Employee on at

    Hi @ankuvijay ,

     

    There is no need to use apply to each , cause email body is just a string.

     

    Best Regards,

    Bof

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    My requirement is to move the emails from in box which are 20 mins old. it their is no condition is required then how i can acchive? Could you please provide more insight on this please.

  • Verified answer
    v-bofeng-msft Profile Picture
    Microsoft Employee on at

    Hi @ankuvijay ,

     

    I've made a test for your reference:

    vbofengmsft_0-1695365571726.png

     

     

    Best Regards,

    Bof

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Thanks a lot Bof ,It worked .

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hi Bof, We are able to hold the email in inbox for 20 mins (as defined time) but when we are creating the file to one drive , i mean when i am creating the email to a file and moving to onedrive the file is creating with empty email template

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 552

#2
Valantis Profile Picture

Valantis 388

#3
11manish Profile Picture

11manish 375

Last 30 days Overall leaderboard