web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / How can I create a new...
Power Automate
Unanswered

How can I create a new trigger?

(0) ShareShare
ReportReport
Posted on by 2

Hi everyone, 

I'm using Power Automate to automate a few things in Planner but it only give me 3 kind of triggers:

1. When a task is assigned for me

2. When a task is created

3. When a task is completed

 

But I want to automate the process of Add a rolute, like:

When a task needs to be completed in 10 days, label X and send an email to user Y 5 days before the due date.

How can I do it? Is there a programming language or something?

Categories:
I have the same question (0)
  • Expiscornovus Profile Picture
    33,189 Most Valuable Professional on at

    Hi @ThiagoMagalhães,


    In that instance you could use a Recurrence trigger with a schedule (for example once a day).

     

    Within the flow you could check which tasks meet these requirements with some filtering in for example a filter array action. For each item that meets these criteria you can sent the reminder e-mail.

     

  • ThiagoMagalhães Profile Picture
    2 on at

    Sorry @Expiscornovus, I don't understand.

    Can you do a simple demo?

  • Expiscornovus Profile Picture
    33,189 Most Valuable Professional on at

    Hi @ThiagoMagalhães,

     

    Below would be an example

     

    1. Add a recurrence

    a. Set the frequency to daily

     

    2. Add a list tasks action

    a. Use your group and plan

     

    3. Add a Filter Array action

    a. Switch to advanced mode

    b. use the expression below

    @and(and(and(not(empty(item()?['dueDateTime'])),equals(formatdatetime(item()?['dueDateTime'], 'yyyy-MM-dd'), addDays(utcNow(), 10, 'yyyy-MM-dd'))),contains(item()?['appliedCategories'], 'category4')),not(empty(item()?['_assignments'])))

     

    This expression checks the following things:

    - duedate not empty

    - compares formatted due date with todays date + 10 days

    - checks if the label category4 is assigned

    - checks if at least one person is assigned (otherwise we cannot e-mail anybody)

     

    4. Add an apply to each loop

    a. Use the Body of the Filter Array or add it as an expression:

    body('Filter_array')

     

    5. Add a second apply to each loop

    a. Use the _assignments array or add it as an expression:

    items('Apply_to_each')?['_assignments']

     

    6. Add a Get user profile

    a. Use the UserId field to retrieve the profile (including the Mail address) of the user assigned, add it as an expression

    item()['UserId']

     

    7. Add a Send an Email (v2)

    a. This will sent an individual e-mail to each user which is assigned to task which is exactly due in 10 days

    b. Use expression to refer to details from the task, like for example the task title:

    items('Apply_to_each')?['Title']

     

    examplereminder.png

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 538 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 405 Moderator

#3
abm abm Profile Picture

abm abm 252 Most Valuable Professional

Last 30 days Overall leaderboard