protected override ActivityExecutionStatus Execute(ActivityExecutionContext executionContext) { // Get the context service. IContextService contextService = (IContextService)executionContext.GetService(typeof(IContextService)); IWorkflowContext context = contextService.Context;
context.PrimaryEntityId //Gets the ID of the primary entity. context.PrimaryEntityName //Gets the name of the primary entity for the workflow. context.PrimaryEntityPostImage context.PrimaryEntityPreImage }Batistuta Cai-刀客 | 蔡敏生 | MS CRM MVP | Blog:http://caims.cnblogs.com