Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Using Flows
Answered

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

(0) ShareShare
ReportReport
Posted on by

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.

  • Community Power Platform Member Profile Picture
    on at
    Re: error when trying to move outlook emails older than 20 mins to onedrive

    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

  • Community Power Platform Member Profile Picture
    on at
    Re: error when trying to move outlook emails older than 20 mins to onedrive

    Thanks a lot Bof ,It worked .

  • Verified answer
    v-bofeng-msft Profile Picture
    on at
    Re: error when trying to move outlook emails older than 20 mins to onedrive

    Hi @ankuvijay ,

     

    I've made a test for your reference:

    vbofengmsft_0-1695365571726.png

     

     

    Best Regards,

    Bof

  • Community Power Platform Member Profile Picture
    on at
    Re: error when trying to move outlook emails older than 20 mins to onedrive

    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.

  • v-bofeng-msft Profile Picture
    on at
    Re: error when trying to move outlook emails older than 20 mins to onedrive

    Hi @ankuvijay ,

     

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

     

    Best Regards,

    Bof

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

Understanding Microsoft Agents - Introductory Session

Confused about how agents work across the Microsoft ecosystem? Register today!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,702 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 66,026 Most Valuable Professional

Leaderboard

Featured topics

Restore a deleted flow