Hi everyone,
I want to create a record from external service in Order entity in dynamic 365 crm. For that i tried using the CallerId property on the OrganizationServiceProxy class. I am setting the CallerId property by the user of CRM who is actually wanting to create a record. But i'm only able to create record in order entity if the user of crm has System Administrator role.
Pseudo code is something look like below:
public void Get(Guid userId){ var proxy = // creating authentication through OrganizationServiceProxy
var Context = // using proxy // now setting caller id proxy.CallerId = userId; // generating order entity var t = new SalesOrder(); t.Name = "Demo"; ..... ... Context.AddObject(t); Context.SaveChanges(); // getting error on save changes }
Now my question is how to overcome the error if the user of crm has not System Administrator role.
Thanks,
Protap
If my answer is helpful & solved your problem, mark it as answer to help others.
This will close the thread as well. Stack Overflow too.
Thanks a lot.
Like I answered in Stack Overflow pls verify the security role privilege of that “normal user” so that any one role must have minimum user level create privilege for order entity under sales tab.
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,253 Super User 2024 Season 2
Martin Dráb 230,188 Most Valuable Professional
nmaenpaa 101,156