首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >在crm动态中插入价值

在crm动态中插入价值
EN

Stack Overflow用户
提问于 2017-05-03 23:36:16
回答 1查看 374关注 0票数 0

如何将Sitecore WFFM表单查找字段中的值插入CRM Dynamics中的查找字段?我可以从WFFM获得Guid形式的值,但它没有插入到CRM动态中。为什么??

代码语言:javascript
复制
public void Execute(ID formid, AdaptedResultList fields, params object[] data)
{
string email = fields.GetValueByFieldID(Email); //this works and insert into CRM
string CountryName = fields.GetValueByFieldID(Country); // this does not work and value is not inserted into the CRM. This one is picking up value in GUID form.
}
EN

回答 1

Stack Overflow用户

发布于 2017-05-04 01:23:41

对于Dynamics CRM: Lookupfield为EntityReferences。因此,您必须使用实体的LogicalName和Id (Guid)设置一个EntityReference。

示例:

代码语言:javascript
复制
Entity entity = new Entity("country");
entity["lookupFieldAttributeName"] = new EntityReference("[PointingToEntityLogicalName]",[PointingToEntity_EntityId(GUID)]);

此外,在SO上也有很多帖子。

示例:

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/43764460

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档