使用工具API在Salesforce中创建自定义字段
我正在尝试使用Salesforce中的工具API创建自定义字段。首先检查工具API,我尝试使用workbench,但它显示以下错误: JSON解析器错误: 消息:无法从值反序列化complexvalue实例。\u字符串值文本或请求可能在[第5行,第25列]处缺少必填字段 错误代码:JSON_解析器_错误 以下是我正在使用的JSON主体:使用工具API在Salesforce中创建自定义字段,api,salesforce,Api,Salesforce,我正在尝试使用Salesforce中的工具API创建自定义字段。首先检查工具API,我尝试使用workbench,但它显示以下错误: JSON解析器错误: 消息:无法从值反序列化complexvalue实例。\u字符串值文本或请求可能在[第5行,第25列]处缺少必填字段 错误代码:JSON_解析器_错误 以下是我正在使用的JSON主体: { "DeveloperName" : "CusField", "Metadata": { "type"
{
"DeveloperName" : "CusField",
"Metadata":
{
"type" : "text",
"description" : "test",
"inlineHelpText" : "testhelp",
"label" : "cus Field",
"required" : false,
"precision" : null,
"length" : 255,
"unique" : false,
"externalId" : false,
"trackHistory" : false
},
"TableEnumOrId" : "Account",
"ManageableState" : "installed"
}
请让我知道身体有什么问题?
提前谢谢。身体有一些问题
- 删除可管理状态
- 不要包括DeveloperName和TableEnumOrId,而是使用FullName,如下所示
- 将字段类型
Text
{
"FullName" : "Account.CusField__c",
"Metadata": {
"type" : "Text",
"description" : "test",
"inlineHelpText" : "testhelp",
"label" : "cus Field",
"required" : false,
"precision" : null,
"length" : 255,
"unique" : false,
"externalId" : false,
"trackHistory" : false
}
}