Friday, 22 March 2013

Code to get the execution entity id , name  in MSCRM custom Workflow:


IWorkflowContext contexto = context.GetExtension<IWorkflowContext>();
String entityName = contexto.PrimaryEntityName;
Guid entityId = contexto.PrimaryEntityId;