
Hello,
We have several planner sites and I want to build a flow where a notification will be send to Teams each time someone is assigned a task. Not from one specific plan but a trigger that picks it up from every plan we have.
Person x gets 3 task from 3 different plans --> a bot sends 3 teams chat messages
Person y gets 2 taks from 2 different plans --> a bot sends 2 teams chat messages
I created a flow with the trigger "when a task is assigned to me" but that only works for myself. It should als work for other people that get tasks assigned.
Any help please?
regards,
Pieterjan
Hi @Pj4
Probably the only option you have is to schedule a workflow to run every 1h (for instance) and check for new tasks for each of the plans:
1) Every hour
2) List all tasks for a specific plan (I would add a parallel branch for each plan)
3) Filter the tasks and get those created less than an hour ago
4) For each task -> Post a message in teams
I'm aware that's not the best option, as you need to add new branches when new plans are created. In order to avoid that, probably you may need to use Graph API.
Hope that helps!
Ferran