Skip to main content

Notifications

Announcements

No record found.

Dynamics 365 general forum

Workflow to create a Task for each User in a Team

Posted on by Microsoft Employee

Hi 

Is it possible, in Dynamics 365 (CRM), to create a Workflow which can loop through the members of a team and create a task for each?

So if there is 4 Users in a Team, it would have to create 4 separate tasks since each Team Member needs to perform the task.

Thank you

  • Verified answer
    Alex Fun Wei Jie Profile Picture
    Alex Fun Wei Jie 33,626 on at
    RE: Workflow to create a Task for each User in a Team

    Hi,

    only plugin and custom workflow could achieve what you want.

  • Suggested answer
    Adrian Begovich Profile Picture
    Adrian Begovich 21,009 Super User 2024 Season 2 on at
    RE: Workflow to create a Task for each User in a Team

    Hi AndrevS,

    Here is an article on creating custom workflow activities with C#. The benefit of custom workflow activities is that they behave similarly to a standard workflow, so you can trigger it on a field change or manually. A plug-in is another option, but will require some effort to run manually. It is straightforward to trigger plug-ins on field changes.

    It is possible to meet your requirement with Microsoft Flow. Take a look at this article on creating new records in Dynamics 365 using Microsoft Flow. You will need to make sure that you populate the lookup fields, so that the records you create are linked properly.

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Workflow to create a Task for each User in a Team

    It would either be triggered by field change on an opportunity or manually.

    It is for the approval of an Opportunity by an approval team.

    I decided to send one email to the team, notifying them of the opportunity to approve.

    And then creating a record in a custom entity, “Approval History”, which is related to the Opportunity entity.

    But that leaves me with the same problem; how do I create a record for each team member.

    I have never written a workflow in C# but I’ll look into it.

    Not possible to do this in Flow?

  • Suggested answer
    Adrian Begovich Profile Picture
    Adrian Begovich 21,009 Super User 2024 Season 2 on at
    RE: Workflow to create a Task for each User in a Team

    Hi AndrevS,

    How do you want to trigger this logic? It might be best to implement this with the C# programming language.

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 Spotlight Star - Khushbu Rajvi

Congratulations to a top community star!

Forum Structure Changes Coming on 11/8!

In our never-ending quest to help the Dynamics 365 Community members get answers faster …

Dynamics 365 Community Platform update – Oct 28

Welcome to the next edition of the Community Platform Update. This is a status …

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,214 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans