Skip to content

Instantly share code, notes, and snippets.

@gashupl
Created July 4, 2019 06:14
Show Gist options
  • Save gashupl/7b488e71f39e59464fc98f01c100c856 to your computer and use it in GitHub Desktop.
Save gashupl/7b488e71f39e59464fc98f01c100c856 to your computer and use it in GitHub Desktop.
public override void Execute(IPluginExecutionContext pluginExecutionContext, IOrganizationServiceFactory serviceFactory, ITracingService tracingService)
{
var orgService = serviceFactory.CreateOrganizationService(pluginExecutionContext.UserId);
var factory = new RepositoryFactory(orgService);
var opportunityRepo = factory.Get();
var data = opportunityRepo.GetSomeData();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment