I need to get either a custom entity’s type name (e.g. new_myspecialentity) or its type code (e.g. 1036) form within a custom workflow activity. Is there anyway to do this?
I need to get either a custom entity’s type name (e.g. new_myspecialentity) or its
Share
From the IWorkflowContext, you can use the PrimaryEntityName property to get the logical name. A sample and other more descriptions can be found in Microsoft Dynamics CRM Blog.