如果帐户存在,则使用 CRM 4.0 Web 服务合并帐户详细信息

发布于 2024-11-07 12:03:34 字数 182 浏览 0 评论 0原文

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

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

谢谢 布兰登

Need advise
I am currently using CRM4.0 webservice to create account from reading my staging table which stored new account informations. I know there is a Create Duplicate Optional Parameter(false) which help to validate existing records. I need to check is there is also a function to merge the existing account with the new account enter?

If had do you guys have any sample or reference that i could use.Thanks Guys and ladies, I have been googling all afternoon and found no articles.

Thanks
Brandon

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

没︽人懂的悲伤 2024-11-14 12:03:34

您必须发送合并消息,该消息可以通过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);

You have to send a Merge Message which could be issued with an MergeRequest

See following example which is included in the 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);
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文