Dynamics CRM 2011 plugin in outlook only? -
we need restrict delete operations done automatically outlook towards crm 2011 while wait bug prepare in 3rd party addin. possible have plugin in dynamics crm 2011 on-premise either executes outlook client (offline not in use) or checks in execution if plugin triggered outlook?
in crm 4.0 there used callerorigin property gave @ to the lowest degree info on this, property seemingly internal in crm 2011 model.
i accessed callerorigin
reflection (it still there, not exposed in sdk libraries).
the code below short version of code, without validations or null checks (i.e. not production code) show how works in few lines:
class="lang-csh prettyprint-override">object callerorigin = context.gettype().getproperty("callerorigin").getvalue(context, null); homecoming callerorigin.gettype().name; // homecoming "webserviceapiorigin" if called outlook or web services
dynamics-crm-2011 dynamics-crm
No comments:
Post a Comment