Quantcast
Channel: Microsoft Dynamics CRM Forum - Recent Threads
Viewing all articles
Browse latest Browse all 82002

How can I call a plugin which inherits from IPlugin wihout JS

$
0
0

I encountered the following code which solves my problem but I do not know how to call it in the Dynamics 365 system. I registered it using Plugin Deployer. However, I cannot see it in the steps section.

 publicclassReadAnnotation : IPlugin
 {
 publicvoidExecute(IServiceProvider serviceProvider)
 {
 IPluginExecutionContext context = (IPluginExecutionContext)serviceProvider.GetService(typeof(IPluginExecutionContext));
 IOrganizationServiceFactory serviceFactory = (IOrganizationServiceFactory)serviceProvider.GetService(typeof(IOrganizationServiceFactory));
 IOrganizationService service = serviceFactory.CreateOrganizationService(context.UserId);
 ...
}
}

Viewing all articles
Browse latest Browse all 82002

Latest Images

Trending Articles



Latest Images