cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Frequent Visitor

Move emails received in a shared mailbox dynamically in email subfolder

Hi all,

In our shared mailbox we receive a hug amount of emails daily. To avoid manually searching, I would like to move the emails to a subfolder based on the UserID.

An Excel file shows both the reference and the UserID as a table. Based on this table I would like to move emails to the separate sub folders.

When I select a particular subfolder, the flow works fine. But I would like to make it dynamic, based on the UserID table and reference.

The flow looks like this:

PatriciaHogen1_0-1599481914009.pngPatriciaHogen1_1-1599481943297.png

 

 

PatriciaHogen1_2-1599481981913.png

 

PatriciaHogen1_3-1599482037993.pngPatriciaHogen1_4-1599482066901.png

PatriciaHogen1_6-1599482152170.png

The first part is to find the reference in the email header. Based on that reference and the table the email should dynamically move to the subfolder.

The subfolder names and the UniqueID's in the table have been copy-pasted, so 100% matching.

If anybody knows how to make this dynamic, would be awesome! Thanks

2 REPLIES 2
Microsoft
Microsoft

Hi @PatriciaHogen1 

Why do you state that you are not sending the emails to a sub-folder dynamically? Taking a look at your "Move email" action you are already moving the message to a subfolder based on the UID that was caught from the excel file.

 

What additional steps would you like to include in this part, and where are getting blocked/having issues? could you elaborate?

 

Regards,

Ricardo

Hi @rimatos ,

When I use a test email, the flow throws this error:

Specified folder 'Inbox/GRI032 name' does not exist. clientRequestId: 1d6193c2-86ac-4242-9439-e28bb8b1fb5e serviceRequestId: 24a3f135-2483-4510-b026-185cd9b5d89d

 

When I select this specific sub folder and perform the test, the email will move to the correct folder.

 

The output reads:

 

{
    "statusCode"404,
    "headers": {
        "Pragma""no-cache",
        "x-ms-request-id""24a3f135-2483-4510-b026-185cd9b5d89d",
        "Strict-Transport-Security""max-age=31536000; includeSubDomains",
        "X-Content-Type-Options""nosniff",
        "X-Frame-Options""DENY",
        "Timing-Allow-Origin""*",
        "x-ms-apihub-cached-response""false",
        "Cache-Control""no-store, no-cache",
        "Date""Wed, 09 Sep 2020 08:45:29 GMT",
        "Set-Cookie""ARRAffinity=b9400932367ab5e3b6802e3d6158afffb12fcde8666715f5a5fbd4142d0f0b7d;Path=/;HttpOnly;Domain=office365-ne.azconn-ne-01.p.azurewebsites.net",
        "Content-Length""233",
        "Content-Type""application/json",
        "Expires""-1"
    },
    "body": {
        "status"404,
        "message""Specified folder 'Inbox/GRI032 GLENN RICHTERS' does not exist.\r\nclientRequestId: 1d6193c2-86ac-4242-9439-e28bb8b1fb5e\r\nserviceRequestId: 24a3f135-2483-4510-b026-185cd9b5d89d",
        "errors": []
    }
}

 If you know how to actually make the moving of emails dynamic, would be wonderful!

Helpful resources

Announcements
New Super Users

Meet the Power Automate Super Users!

Many congratulations to the Season 1 2021 Flownaut Crew!

New Badges

New Solution Badges!

Check out our new profile badges recognizing authored solutions!

MPA Community Blog

Power Automate Community Blog

Check out the community blog page where you can find valuable learning material from community and product team members!

Users online (79,312)