2011-05-13 76 views
0

需要提醒 我目前使用CRM4.0 webservice從讀取存儲新帳戶信息的臨時表創建帳戶。我知道有一個創建重複可選參數(假),這有助於驗證現有的記錄。我需要檢查是否還有一個功能將現有帳戶與新帳戶合併?合併帳戶詳細信息使用CRM 4.0 Webservice(如果帳戶存在)

如果你們有誰有我可以使用的任何樣本或參考。謝謝夥計們和女士們,我一直在谷歌搜索整個下午,沒有發現任何文章。

感謝 布蘭登

回答

1

你必須發送一個Merge Message這可能與MergeRequest

發見它包含在SDK

// Create the target for the request. 
TargetMergeAccount target = new TargetMergeAccount(); 
// EntityId is the GUID of the account that is being merged into. 
target.EntityId = new Guid("2B951FBC-1C56-4430-B23B-20A1349068F3"); 

// Create the request. 
MergeRequest merge = new MergeRequest(); 
// SubordinateId is the GUID of the account merging. 
merge.SubordinateId = new Guid("AD618DB2-F0DB-4A6A-8C4B-2F2213EAA38E"); 
merge.Target = target; 
merge.PerformParentingChecks = false; 

account updateContent = new account(); 
updateContent.address1_line1 = "test"; 
merge.UpdateContent = updateContent; 

// Execute the request. 
MergeResponse merged = (MergeResponse)service.Execute(merge); 
+0

嘿兄弟只是用U檢查下面的例子你有合併動態實體的示例代碼嗎? – Brandothh 2011-05-26 03:12:13

+0

@Brandothh你的問題是什麼?您必須使用TargetMergeDynamic http://msdn.microsoft.com/en-us/library/bb889644.aspx而不是'TargetMergeAccount' – ccellar 2011-05-26 06:57:04

相關問題