我正在使用beatbox
來訪問Salesforce的SOAP API。更具體地講,我想convertLead
一個Lead
使用轉換,像這樣REQUIRED_FIELD_MISSING嘗試使用beatbox訪問Salesforce API時
# Assuming soap_client is a PythonClient already logged in and
# lead is a Lead object.
response = soap_client.convertLead({
'leadId': lead.pk,
'convertedStatus': "Qualified - converted",
})
按照documentation這個端點不應該需要比任何leadId
和convertedStatus
多個參數,但是響應包含以下錯誤消息
System.DmlException: Insert failed. First exception on row 0; first error: REQUIRED_FIELD_MISSING, Required fields are missing: [Company_Name__c]: [Company_Name__c] (System Code)UNKNOWN_EXCEPTION00Qg0000003Er0pEACfalse
很好的提及lead
(要轉換的對象Lead
)實際上包含非空的Company
字段。
任何可能導致此錯誤消息的想法?我試圖專門添加一個companyName
字段到API調用,但它沒有幫助。