开发者

How can I get the entity type code (or name) for the primary entity in a custom workflow activity?

开发者 https://www.devze.com 2023-01-12 02:53 出处:网络
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

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消