本文介绍了Salesforce.com Id属性似乎具有15和18个字符的值,有什么区别?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

使用SOAP API与salesforce.com(SFDC)一起使用时,基础数据库中的主键似乎是Id.嗯,这个值似乎有两种表示形式,分别是15个字符的版本或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.

我一直在使用18,因为它显然更具体,但是最后三位数字中包含哪些内容,可以将它们删除?

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服务API开发人员指南》 :

因为有类似的应用程序 无法识别的访问 50130000000014c是与ID不同的ID 50130000000014C,一个18位数字, ID的大小写安全版本为 由所有API调用返回. 18岁 字符ID由 为后缀中的每个ID添加一个后缀 Force.com API.可以包含18个字符的ID 安全地比较唯一性 不区分大小写的应用程序,并且可以 在以下情况下可用于所有API调用 创建,编辑或删除数据.

Because there are applications like Access which do not recognize that 50130000000014c is a different ID from 50130000000014C, an 18-digit, case-safe version of the ID is returned by all API calls. The 18 character IDs have been formed by adding a suffix to each ID in the Force.com API. 18-character IDs can be safely compared for uniqueness by case-insensitive applications, and can be used in all API calls when creating, editing, or deleting data.

如果您需要转换 18个字符的ID到15个字符的ID 版本,截断最后三个 人物. Salesforce.com建议 您使用18个字符的ID.

If you need to convert the 18-character ID to a 15-character version, truncate the last three characters. Salesforce.com recommends that you use the 18-character ID.

这篇关于Salesforce.com Id属性似乎具有15和18个字符的值,有什么区别?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-19 02:24