【问题标题】:Merge Account Detail Using CRM 4.0 Webservice if account exist如果帐户存在,则使用 CRM 4.0 Web 服务合并帐户详细信息
【发布时间】:2011-05-13 09:51:54
【问题描述】:

需要建议 我目前正在使用 CRM4.0 网络服务通过读取存储新帐户信息的临时表来创建帐户。我知道有一个 Create Duplicate Optional Parameter(false) 有助于验证现有记录。我需要检查是否还有将现有帐户与新帐户合并的功能?

如果你们有任何我可以使用的样本或参考资料。谢谢各位,我整个下午都在谷歌上搜索,没有找到任何文章。

谢谢 布兰登

【问题讨论】:

    标签: web-services dynamics-crm-4


    【解决方案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);
    

    【讨论】:

    • 嘿兄弟,只是想和你核实一下,你有合并动态实体的示例代码吗?
    • @Brandothh 你有什么问题?您必须使用 TargetMergeDynamic msdn.microsoft.com/en-us/library/bb889644.aspx 而不是 TargetMergeAccount
    猜你喜欢
    • 1970-01-01
    • 2023-02-22
    • 1970-01-01
    • 2019-02-09
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2014-06-08
    • 1970-01-01
    相关资源
    最近更新 更多