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

Issues dynamically setting Owner on Account in Dynamics 365



I am trying to create a flow in my Dynamics 365 environment that will update the record owner of an Account when the territory changes. The flow triggers when the TerritoryID field changes on an Account, then it grabs the ManagerID from the Territory record and attempts to set the Account Owner to the ManagerID.


I am very close, in that If I assign a record to the test Territory I manage it works, but as soon as I select a Territory managed by someone else I get the following error: 

SecLib::CrmCheckPrivilege failed. Returned hr = -2147220943 on UserId: 485268c2-6218-eb11-a816-000d3af3ae41 and PrivilegeType: Read


I am assuming my issue is something small, but I am not sure what to try next.




Not applicable

The error you’re getting is a permissions-based error. Your account doesn’t have the permissions in Dynamics that are required to complete the action. Your account has read-only permissions when you need read and write permissions, such as those granted by the sales manager security role. 

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.

PowerPlatform 768x460.png

Microsoft Learn

Check out our new Discover Your Career Path blog post series and get all the details.

Users online (2,447)