Skip to main content

Notifications

Power Automate - Building Flows
Suggested answer

Create planner tasks for flagged emails in Office 365 is creating duplicate tasks

Posted on 25 Nov 2024 16:09:08 by
Hi,
 
I noticed my old flow to create a task in planner from flagged email in Outlook is now creating two tasks (duplicated).
This is happening with other colleagues.
 
The flow was created from the template. I already tried to create a new flow but same behavior.
 
Anyone could help?
  • AS-25111605-0 Profile Picture
    AS-25111605-0 on 26 Nov 2024 at 17:28:56
    Create planner tasks for flagged emails in Office 365 is creating duplicate tasks
    It creates two tasks at same time randomly.
    For the same flagged email sometimes it creates two and sometimes it creates only one.
    It's a bug that started happening some days ago without any modification.
     
     
  • Suggested answer
    SaiRT14 Profile Picture
    SaiRT14 911 on 25 Nov 2024 at 21:16:02
    Create planner tasks for flagged emails in Office 365 is creating duplicate tasks
    pls try the following:
     
    Use the flag.status property to ensure the flow only triggers for flag.status == "flagged" and not completed or other changes. 
    @equals(triggerBody()?['flag']?['status'], 'flagged')
     

    Add a Condition in the flow to check if a task with the same subject or identifier already exists in Planner before creating a new one.
    • Use the "List tasks" action in Planner to fetch existing tasks.
    • Compare the subject or email ID to avoid creating duplicates.

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

November 2024 Newsletter…

November 2024 Community Newsletter…

Community Update Oct 28…

Power Platform Community Update…

Tuesday Tip #7 Community Profile Tips…

Welcome to a brand new series, Tuesday Tips…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 143,129

#2
RandyHayes Profile Picture

RandyHayes 76,308

#3
Pstork1 Profile Picture

Pstork1 63,797

Leaderboard