Salesforce.com Id 属性似乎有 15 和 18 个字符值,有什么区别?
当使用 SOAP API 与 salesforce.com (SFDC) 配合使用时,底层数据库中的主键似乎是 Id。这个值似乎有两种表示形式:15 个字符版本或 18 个字符版本。
我一直使用18,因为它显然更具体,但最后三位数字中包含什么,它们看起来可以被删除?
有人明白这是怎么回事吗?
When using the SOAP API to work with salesforce.com (SFDC) it seems that the primary key in the underlying database is Id. Well there seems to be two representations of this value as either a 15 character version or an 18 character version.
I have been using the 18 since it is clearly more specific, but what is contained in the last three digits, that they can be dropped, seemingly?
Anyone understand what this is all about?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
来自Web 服务 API 开发人员指南:
From the Web Services API Developer's Guide:
我知道这是一篇旧帖子,但以防万一它对某人有用...
如果您想对 Id 进行临时转换,而不是以编程方式进行转换,那么这个 Chrome 扩展程序会让这一切变得简单:
https://chrome.google.com/webstore/detail/ sf-15-to-18/cogllpmaoflgaekieefhmglbpgdgmoeg
仅供参考 - 我是开发人员。如果您想提出任何改进或附加功能的建议,请使用应用程序上的反馈表。
谢谢!
I know this is an old post, but just in case it is useful to someone...
If you want to do ad-hoc conversions of Id's, rather than programatically, then this Chrome extension makes it easy:
https://chrome.google.com/webstore/detail/sf-15-to-18/cogllpmaoflgaekieefhmglbpgdgmoeg
FYI - I'm the developer. Please use the feedback form on the app if you'd like to suggest any improvements or additional functionality.
Thanks!