简体   繁体   English

在没有Accountid Dynamics CRM的情况下更新帐户详细信息

[英]Updating account details without accountid Dynamics CRM

I am making a short program to update values in Dynamics CRM 2016 through the web API however, the examples from Microsoft always use the account guid such as, 我正在编写一个简短的程序来通过Web API更新Dynamics CRM 2016中的值,但是Microsoft的示例始终使用帐户guid,例如,

PATCH [Organization URI]/api/data/v8.1/accounts(00000000-0000-0000-0000-000000000001) HTTP/1.1

The problem is that the users are already created and I don't have their GUID values. 问题是已经创建了用户,而我没有其GUID值。

Is it possible to update account's details based on say email address value if it's unique? 是否可以根据说出的电子邮件地址值更新帐户的详细信息? Can I pass the email value instead of the GUID? 我可以通过电子邮件值代替GUID吗? If no, what would you recommended doing, something like get request for all account GUIDs and email addresses and then locally map them to create appropriate requests with guid? 如果没有,您会建议做什么,例如获取所有帐户GUID和电子邮件地址的请求,然后本地映射它们以使用guid创建适当的请求?

Would this be relevant when we talk about big amount of accounts(in millions)? 当我们谈论大量帐户(百万)时,这是否有意义?

First of all tou are using the new Web API, keep in mind that if you are developing with .NET you can use the SDK dlls, in my opinion they are easier to use. 首先,您正在使用新的Web API,请记住,如果使用.NET开发,则可以使用SDK dll,我认为它们更易于使用。

Normally you can't use the email address instead of the record id (accountid in your case) BUT your version of Dynamics CRM (2016) supports alternate keys and eventually you can set the email field (emailaddress1) to be a key, more information here: LINK 通常,您不能使用电子邮件地址来代替记录ID(在您的情况下为帐户ID),但您的Dynamics CRM版本(2016)支持备用键,最终您可以将电子邮件字段(emailaddress1)设置为键,更多信息此处: LINK

Right now I don't have an example of alternate keys with Web API, and googling some links pointed to some issues, you need to try out by yourself 现在,我没有使用Web API的备用键的示例,并且在Google搜索某些指向某些问题的链接时,需要自己尝试一下

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM