Skip to main content

Notifications

Announcements

No record found.

Customer experience | Sales, Customer Insights,...
Unanswered

Assigning Security Role to Team using Flow

Posted on by 184

I created a flow that is triggered when a division is created or updated. 

If a division is created, the flow creates a new Business Unit and Team. 

I then assign the new team a security role. 

Yesterday, this was working for me but it no longer works. Here is what I have:


List all Security Roles and retrieve the Community Sales role using the following fetch:

<fetch>
<entity name="role" >
<filter>
<condition attribute="name" operator="eq" value="Community Sales" />
<filter>
<condition attribute="businessunitid" operator="eq" value="@{outputs('Get_Communities_Division')?['body/_businessunit_value']}" />
</filter>
</filter>
</entity>
</fetch>

Once i have the security role, I relate the team with the security role. For some reason, the Odata for the Security Role is now NULL and the flow fails. 


Like i said, this worked before but now it fails every time due to the Odata ID in "Get Security ID" being NULL.

When i download the output for the "get Security Role ID" I can see the Odata ID in the body.

 2021_2D00_10_2D00_22-11_5F00_27_5F00_18_2D00_Power-Apps-_5F00_-Solutions-_2D00_-Flow-_2D00_-Assign-Division-and-Team.png

Any help would be greatly appreciated!

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

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,235 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans