scottdurow / SparkleXrm

An open-source library for building Dynamics CRM XRM solutions using Script#, jQuery & Knockoutjs.
MIT License
264 stars 194 forks source link

how to add different user as "run in user's context" while registering Plugin, we are not able to using spkl #473

Open Daljinder89 opened 1 year ago

yogeshkoshti4313 commented 1 year ago

@scottdurow - is there anyway to do this?

pawelgradecki commented 1 year ago

is there any reason why you would you be doing that? Registering plugin step on a user is like a Dynamics anti-pattern, for me it's great spkl does not allow that. There is very simple way of running logic in user context (simply when you are getting IOrganizationService from factory you specify userId, which is much cleaner way and introducing less technical debt