如何使用使用选项集数据类型的字段创建CRM实体 [英] how to create an CRM entity with a field which using data type of option set

查看:123
本文介绍了如何使用使用选项集数据类型的字段创建CRM实体的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我正在尝试使用XRM工具创建一个包含多个字段的CRM实体。 


该字段位于"数据类型"="选项集"


                inData.Add(" my_eventtype",new CrmDataTypeWrapper((int)(8989),CrmFieldType.CrmNumber));

                inData.Add(" title",new CrmDataTypeWrapper(" data",CrmFieldType.String));


由于在第一个字段上投射,创建失败。


有人可以分享关于此类型的一些知识"数据类型"中的字段是  '选项设置',默认值为'未分配值'。


非常感谢!


问候,


M




maggiecandyland

解决方案

您是否正在寻求帮助Dynamics 365?您最好的帮助地点在
Dynamics 365社区论坛上。  

Hi,

I am trying to use XRM tools to create an CRM entity with many fields. 

one of the field is in 'Data Type' = 'option set'

                inData.Add("my_eventtype", new CrmDataTypeWrapper((int)(8989) , CrmFieldType.CrmNumber));
                inData.Add(" title", new CrmDataTypeWrapper("data", CrmFieldType.String));

The creation failed because of the casting on the first field.

Could someone share some knowledge on this type of field which is in 'Data Type' is  'option set' , default value is 'Unassigned value'.

thank you very much!

Regards,

M


maggiecandyland

解决方案

Are you looking for assistance with Dynamics 365? Your best place for assistance Is on the Dynamics 365 Community forums.  


这篇关于如何使用使用选项集数据类型的字段创建CRM实体的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆