gpt4 book ai didi

java - 访问自定义字段 Salesforce

转载 作者:行者123 更新时间:2023-11-29 05:52:32 25 4
gpt4 key购买 nike

我在 Salesforce 的联系人对象中创建了一个自定义字段,其 API 名称为“Resume_Text__c”,我正在使用 Java 实现通过编写以下 SOQL 进行 SOAP 调用以获取该字段的值。

SELECT  Resume_Text__c FROM Contact

但是查询的执行抛出以下异常。

No such column 'Resume_Text__c' on entity 'Contact'. If you are attempting to use a custom field, be sure to append the '__c' after the custom field name. Please reference your WSDL or the describe call for the appropriate names.'

那么如何通过 Soap API Java 实现访问自定义字段?

最佳答案

每当您在实现中使用 Enterprise.wsdl 文件时,您需要确保每次在 Salesforce.com 环境中创建一些新字段和对象时,您都刷新您的企业.wsdl 导入所有依赖关系映射,否则使用 Partner.wsdl

关于java - 访问自定义字段 Salesforce,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13392640/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com