cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
ScottNunweiler
Regular Visitor

Issues dynamically setting Owner on Account in Dynamics 365

Hello,

 

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.

 

Thanks,

Scott

1 REPLY 1
Anonymous
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

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

New Ideas Forum MPA.jpg

A new place to submit your Ideas for Power Automate

Announcing a new way to share your feedback with the Power Automate Team.

MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

MPA Licensing.jpg

Ask your licensing questions at the Power Automate AMA!

Join Priya Kodukula and the licensing team, super users and MVPs to find answers to your questions on Power Automate licensing.

Users online (1,693)