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 by 2
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 2 on at
    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 1,278 on at
    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,487

#2
RandyHayes Profile Picture

RandyHayes 76,308

#3
Pstork1 Profile Picture

Pstork1 64,014

Leaderboard