How can I get the entity type code (or name) for the primary entity in a custom workflow activity?
I need to get either a custom开发者_如何学Python 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?
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.
精彩评论