Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics 365 | Integration, Dataverse...
Answered

Flow: Add condition to check if owner is team or user

(0) ShareShare
ReportReport
Posted on by

A typical request is to send an email notification when a record is assigned to a new owner.
And with
 classic workflows you can easy add a condtion to check if the new owner is a user or a team.

Now I would like to create a similar flow with Power Automate, and would like to distinguish between if the owner of a record is a team or owner.
How do you add a condition og expression to a flow to check if the type of owner is a user ?

  • smharrod Profile Picture
    smharrod 2 on at
    Flow: Add condition to check if owner is team or user
    Owner Type is equal to systemuser worked for me (not systemusers)
  • Suggested answer
    RE: Flow: Add condition to check if owner is team or user

    Hi Hoa,

    Thanks for guiding me in the right direction :-)

    Now I finally cracked the nut... by adding a "Get Record" and with Compose function get the Owner Type and then set the condition "Outputs is equal to systemuser"

    pastedimage1598974706083v1.png

  • LuHao Profile Picture
    LuHao 40,874 on at
    RE: Flow: Add condition to check if owner is team or user

    Hi Dorthe,

    I'm afraid that this is not possible with the Common Data Service (current environment) connector.

    As stated in my last reply, the current Common Data Service (current environment) connector does have the defect that it cannot recognize the owner type.

    I'm not sure if this is a bug, I'll ask the member at Power Automate team or raise a support ticket to determine it.

  • RE: Flow: Add condition to check if owner is team or user

    Hi Hao,

    Thanks for the tip, but I am looking for a solution where I can use The Common Data Service (current environment) connector.

    Best regards,

    Dorthe

  • Suggested answer
    LuHao Profile Picture
    LuHao 40,874 on at
    RE: Flow: Add condition to check if owner is team or user

    Hi Dorthe,

    We should use Common Data Service connector insted of Common Data Service (current environment) connector.

    3021.pastedimage1598953552718v1.png

    The Common Data Service (current environment) connector currently does not support identifying the owner type, so the connector of the trigger must be Common Data Service.

  • RE: Flow: Add condition to check if owner is team or user

    Hi Hao,

    Thanks for the input, but I already tried it - and I just tested it a second time. This condition is not working, and since it will be just "false", I don't get an error message when testing.

    4382.pastedimage1598905956376v1.png

    Best Regards
    Dorthe

  • Suggested answer
    LuHao Profile Picture
    LuHao 40,874 on at
    RE: Flow: Add condition to check if owner is team or user

    Hi Dorthe,

    In the flow, we can distinguish the type of owner through the field Owner(Type).

    Add the condition step, enter the first value, search the dynamics value "owner", you will see the field Owner(Type), choose it.

    6355.pastedimage1598855310804v2.png

    Then enter the second value, type systemusers.

    4520.pastedimage1598855403403v3.png

    In this way, when the new owner is a user, then the condition result is ture.

    When the the new owner is a team, then the condition result is false.

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,784 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,476 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans