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

Get Org Id in Package Deployer

$
0
0

I'm attempting to use the package deployer to link together a couple of solutions and some data.

During the import I need to run some code that contains the organisation's guid. But I can't find a way of accessing it.

In a plugin I would use the following:

public void Execute(IServiceProvider serviceProvider)
        {
            IPluginExecutionContext context = (IPluginExecutionContext)serviceProvider.GetService(typeof(IPluginExecutionContext));
            Guid _id = context.OrganizationId;
}


How do I do this in the package deployer, in BeforeImportStage() if it makes any difference


Viewing all articles
Browse latest Browse all 46379

Trending Articles