2017-05-03 16 views
0

CRM Dynamicsの検索フィールドにSitecore WFFMフォームの検索フィールドから値を挿入するにはどうすればよいですか?私はWFFMからGuidフォームの価値を得ることができますが、CRMのダイナミックスには挿入されません。なぜ?? Dynamics CRMのためにcrm dynamicsに値を挿入

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. 
} 

答えて

0

: LookupfieldsはEntityReferencesがあります。 したがって、EntityとId(Guid)のLogicalNameでEntityReferenceを設定する必要があります。

例:

Entity entity = new Entity("country"); 
entity["lookupFieldAttributeName"] = new EntityReference("[PointingToEntityLogicalName]",[PointingToEntity_EntityId(GUID)]); 

はまたたくさんの記事がここにSOです。

例:

+0

、これは動作しません。上記の国コードを変更して説明できますか? – user7832038

関連する問題