Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics 365 | Integration, Dataverse...
Suggested answer

Workflow check condition based on record owner's team membership

(0) ShareShare
ReportReport
Posted on by 95

I am trying to create a check condition in a workflow that is triggered on change of a field within a Case record.

I want the check condition to allow the workflow to proceed only if the Query record owner (the user) is a member of either Team A, Team B or Team C.

I can list all individual team members in the check condition, but that is time consuming and requires updating every so often. I can't use the 'Owning team' choice as this only works if the team itself owns the record, rather than an individual.

I have tried this both in the classic Dynamics background workflows and with MS Flow, but simply cannot seem to make the link between the Case record, the owning user and the owning user's team.

Any suggestions are appreciated.

  • Suggested answer
    Leah Ju Profile Picture
    Leah Ju Microsoft Employee on at
    RE: Workflow check condition based on record owner's team membership

    Hi Partner,

    Maybe you can try to use workflow Tools, it has one tool:Check If User is in Team

    This step is very usefull to check if the user that initialized the Workflow execution, is a mamber of a specified Team.

    https://github.com/demianrasko/Dynamics-365-Workflow-Tools/blob/master/docs/Check%20If%20User%20is%20in%20Team.md 

    Or you can try to use js or power automate to check it:

    Perhaps you could refer to my response under a similar question earlier:

        

    User and Team are N:N relationship, which means that one user can be associated with multiple teams.

    Workflow Tools add-on can make you check if the user is member of a team or not, but it needs you input team manually.

    If you want to list all teams related to the user directly, workflow can't achieve it, you need try to use js or power automate to retrieve all related teams.

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

Congratulations 2024 Spotlight Honorees

Kudos to all of our 2024 community stars! 🎉

Meet the Top 10 leaders for December

Congratulations to our December super stars! 🥳

Start Your Super User Journey

Join the ranks of our community heros! 🦹

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,458 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans