Soap 无法在Salesforce上使用元数据api创建listview
我不熟悉Salesforce元数据api。我想使用元数据api在Salesforce上创建联系人列表视图Soap 无法在Salesforce上使用元数据api创建listview,soap,salesforce,salesforce-lightning,Soap,Salesforce,Salesforce Lightning,我不熟悉Salesforce元数据api。我想使用元数据api在Salesforce上创建联系人列表视图 <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:met="http://soap.sforce.com/2006/04/metadata"> <soap:Header> <met:AllOrNo
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:met="http://soap.sforce.com/2006/04/metadata">
<soap:Header>
<met:AllOrNoneHeader>
<met:allOrNone>false</met:allOrNone>
</met:AllOrNoneHeader>
<met:CallOptions>
<met:client>https://xyz.salesforce.com</met:client>
</met:CallOptions>
<met:SessionHeader>
<met:sessionId>xyz</met:sessionId>
</met:SessionHeader>
</soap:Header>
<soap:Body>
<met:createMetadata>
<!--Zero or more repetitions:-->
<met:metadata>
<!--Optional:-->
<met:fullName>TESTVIEW__c</met:fullName>
</met:metadata>
</met:createMetadata>
</soap:Body>
</soap:Envelope>
我使用的端点是:
我更新到SOAP端点:
https://xyz-dev-ed.my.salesforce.com/services/Soap/m/51.0/1112312DRED21
现在我越来越紧张了
[
{
"errorCode": "METHOD_NOT_ALLOWED",
"message": "HTTP Method 'POST' not allowed. Allowed are HEAD,GET"
}
]
<?xml version="1.0" encoding="UTF-8"?>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<soapenv:Body>
<soapenv:Fault>
<faultcode>soapenv:Client</faultcode>
<faultstring>content-type of the request should be text/xml</faultstring>
</soapenv:Fault>
</soapenv:Body>
</soapenv:Envelope>
soapenv:客户端
请求的内容类型应为text/xml
我想我离这更近了一步。有效负载对创建联系人列表视图有效吗?您不能通过向REST API端点发送帖子来进行元数据API部署 如果要使用REST端点,请使用。如果要使用负载似乎面向的SOAP调用,则需要使用