cancel
Showing results for 
Search instead for 
Did you mean: 

Trigger for when an email is moved to a folder

It would be very helpful to have a trigger for when an email is moved to a specific folder.  I have an outlook server rule which tags my incoming messages with categories.  After reading them I move them to a single folder "no action required".  I have a series of client rules which I enable and manually run which check the categories and move the messages to folders for longer term archiving.  It would be nice to have a trigger so when I move the item to the folder it is a trigger for other actions.  

 

Thank you for the consideration.

-Michael

Status: Declined

Circling back after checking with the Power Automate Connectors team, unfortunately there are no plans to add this trigger.

Comments
VictorIvanidze
Community Champion

Hi @karolans,

 

I mean creating a scheduled flow and getting all unread emails in all folders by executing a single GRAPH request. 

AnnaChu
Administrator
Status changed to: Declined

Circling back after checking with the Power Automate Connectors team, unfortunately there are no plans to add this trigger.

VictorIvanidze
Community Champion

Hi @karolans,

>Basically we need to set up some basic reporting on our shared mailbox.

did you create a flow?

 

karolans
Regular Visitor

Thank you for the updates, we will try to find a workaround then. The ideal simple solution would be to trigger when an e-mail is moved and pass through the folder name where the mail was moved, which would basically serve as very effective categorization without having to manage special other fields. But if that is not planned then we will have to use some less effective workarounds.

 

@VictorIvanidze Yes for now it is a flow which just creates a Sharepoint item for each incoming mail, including the conversation ID, timestamp and some other basic information.

 

I was hoping to avoid a move to a 3rd party ticketing tool (which is a step back from e-mails in most regards), but our management does want to see KPI reports which are just not easily obtainable with Microsoft tools (mostly processing times per agent).

VictorIvanidze
Community Champion

Hi @karolans,

 

sorry I don't understand how  "a flow which just creates a Sharepoint item for each incoming mail" can substitute a flow that triggers when a message is moved from one folder to another. Could you please explain?

karolans
Regular Visitor

@VictorIvanidze If you set a trigger on incoming e-mail and choose a specific folder, it actually fires whenever someone moves an e-mail there (no matter from where or how old the e-mail is).

 

But for this I would have to hardcode a similar Flow for each folder, which is not feasible (we have many folders which keep changing).

 

Also I don't know how to pass the folder name from the trigger into the Sharepoint list.

 

Maybe the picture makes it a little clearer 🙂2022-05-13 13_53_20-Edit your flow _ Power Automate.png

VictorIvanidze
Community Champion

Thank you, @karolans.

VictorIvanidze
Community Champion

Hi @karolans 

 

>Also I don't know how to pass the folder name from the trigger into the Sharepoint list.

 

try this:

trigger()?['inputs']?['parameters']?['folderPath']

QuickBrownFox
Regular Visitor

Hi @VictorIvanidze , 

>try this:
>trigger()?['inputs']?['parameters']?['folderPath']

I can't get the folder name from the inputs parameters like you described. This expression catches nothing in my my case. 

The available input parameters are the following:

QuickBrownFox_0-1652705333459.png

As you see, the folder is only logged as "folderId". 

 

VictorIvanidze
Community Champion

Hi @QuickBrownFox.

 

to get the folder name execute the following GRAPH request (GET):

https://graph.microsoft.com/v1.0/me/mailFolders/{folderID}