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 :
Microsoft Dynamics 365 | Integration, Dataverse...
Answered

Email to Case Flow unable to move emails to subfolder

(0) ShareShare
ReportReport
Posted on by 274

Hello all!

I have created a few Flows that create a case when an email is tracked in a shared mailbox.

The problem is that this requires some manual input to check that the case has been created as all emails are tracked regardless, so what I have been trying to get working is adding to the flow the Move Email (V2) step so that anything that is processed can be moved to a sub folder.

It seems very hit and miss as it will initially work fine but if there are multiple emails in the mailbox it will just move them all on a single run of the flow, causing several to be missed and not logged.

It currently looks like this - 

pastedimage1628686823766v1.png

Details of the Get Emails (V3) step - 

pastedimage1628687147807v1.png

Next flow steps - 

pastedimage1628686850606v2.png

Details of the flag and move emails steps - 

pastedimage1628687262966v2.png

So what I'm looking for is a way of just the emails that have logged cases to be moved as we have exceptions in the flow that stop non contacts from logging cases.

Any advice on this would be greatly appreciated

Cheers

Sam

I have the same question (0)
  • Sam Conroy Profile Picture
    274 on at
    RE: Email to Case Flow unable to move emails to subfolder

    This worked in the end if combined with setting the Get Email (V3) to process more than 1 email so I'll mark your response as the answer.

    Thanks again Frank :)

  • Sam Conroy Profile Picture
    274 on at
    RE: Email to Case Flow unable to move emails to subfolder

    At the moment it's only in our testing environment so each test email is 100% different. I'll take a look to see if the loop step is configured correctly as I must have missed a step somewhere for it to do this, it's just frustrating that the first one goes through without a problem

  • AriaConsulting Profile Picture
    2 on at
    RE: Email to Case Flow unable to move emails to subfolder

    You may have to use AI Builder in PA to be able to more accurately associate the emails together.

  • Community Member Profile Picture
    on at
    RE: Email to Case Flow unable to move emails to subfolder

    Hi,

    If subjects are not equal, the expression is judged to be false, and the actions within the condition will not be executed.

    If there are multiple emails, why does each action loop only once?

    It is possible that the subject of the first email is not equal to the subject of the email that created the case, because only one of the multiple emails will be equal.

    I think you have some problems in the step of looping emails.

    If this helped you, I'd appreciate it if you'd mark this as a Verified Answer, which may in turn help others as well.

    Best Regards,

    Frank Gong

  • Sam Conroy Profile Picture
    274 on at
    RE: Email to Case Flow unable to move emails to subfolder

    Hi Frank,

    That doesn't seem to work when there are multiple emails in the mailbox sadly. I don't get any errors in the flow, it says that the result was false after one run is complete -

    pastedimage1628838541594v1.png

  • Sam Conroy Profile Picture
    274 on at
    RE: Email to Case Flow unable to move emails to subfolder

    That's a great idea Frank, I'll give it a go now and let you know how I get on.

    Cheers

    Sam

  • Verified answer
    Community Member Profile Picture
    on at
    RE: Email to Case Flow unable to move emails to subfolder

    Hi,

    Have you tried adding a condition to determine whether the subject of the email is consistent with the subject in the trigger (if the subject is different each time)?

    Like this:

    pastedimage1628754080365v1.png

    If this helped you, I'd appreciate it if you'd mark this as a Verified Answer, which may in turn help others as well.

    Best Regards,

    Frank Gong

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…

Mansi Soni – Community Spotlight

We are honored to recognize Mansi Soni as our August 2025 Community…

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Microsoft Dynamics 365 | Integration, Dataverse, and general topics

#1
DAnny3211 Profile Picture

DAnny3211 433

#2
Abhilash Warrier Profile Picture

Abhilash Warrier 137 Super User 2025 Season 2

#3
Martin Dráb Profile Picture

Martin Dráb 67 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans