Showing results for 
Search instead for 
Did you mean: 
Regular Visitor

Assign Custom Entity to Team + Email



I am trying to build a flow that does the following:


WHEN a Custom Entity is updated:

IF Custom Entity Field Option Set = "a value"

- Assign Custom Entity to Team in Owner field.

- Email all Team members of assignment.


I need help in understanding how to do these two things. I'm not sure what Actions I should use other than "Mail" and "Update a Record - Common Data Service". 



Community Support
Community Support

Use the Trigger " Send an email notification (V3)" and input the email addresses of team members to be notified when there is an update in entity 

Regular Visitor

The team members are dynamic, so I don't know the email addresses at flow design time.  I have defined the team in the "Environment" -> "Settings" -> "Users + Permission" -> Teams section.

Dual Super User II
Dual Super User II

Hi @mlogan 


So how do you determine that what team owns the record then? Accordingly, you can do this: When a record is updated, ensure that you provide an attribute filter such that the flow triggers only when that particular field is updated. and then the update record action select the owner type as team and pass the team guid. last action would be to send the email. 


Hope this Helps!

If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

Hello @yashag2255 


I have a Business Rule on the Custom Entity that sets the "Owner" field to the Team.   I am able to see the Team GUID.  What I don't know is how to get the Team member's emails.


In my Flow Run history I can see the owner fields are set to these values:



Hi @mlogan,


You could use the Get user action of Azure AD connector to get the user Email address according to the UID:

Annotation 2020-04-17 093740.png


Best Regards,
Community Support Team _ Lin Tu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Hello @v-litu-msft 


I looked for a "Get User" for Azure AD but did not see it.  I created a connection for Azure AD and the "Get User" Azure AD action become available.  I provided the GUID as the input for the function but the it is unable to find the user.


Below is the error output when using "Get User" Azure AD.


Resource 'xxxxx-xxxx-xxxx-xxxx-xxxxxxxxx' does not exist or one of its queried reference-property objects are not present.

Helpful resources

MPA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

V3_PVA CAmpaign Carousel.png

Community Challenge - Giveaways!

Participate in the Power Virtual Agents Community Challenge

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

R2 (Green) 768 x 460px.png

Microsoft Dynamics 365 & Power Platform User Professionals

DynamicsCon is a FREE, 4 half-day virtual learning experience for 11,000+ Microsoft Business Application users and professionals.

Top Solution Authors
Users online (1,890)