python salesforce beatbox:beatbox._beatbox.SoapFaultError:';无效的_字段';
我正在使用从Python连接到Salesforce,在我尝试添加日期约束之前,它工作正常 当我添加CreatedDate约束时,它会失败python salesforce beatbox:beatbox._beatbox.SoapFaultError:';无效的_字段';,python,salesforce,beatbox,Python,Salesforce,Beatbox,我正在使用从Python连接到Salesforce,在我尝试添加日期约束之前,它工作正常 当我添加CreatedDate约束时,它会失败 File "/Library/Python/2.7/site-packages/beatbox/_beatbox.py", line 332, in post raise SoapFaultError(faultCode, faultString) beatbox._beatbox.SoapFaultError: 'INVALID_FIELD' "IN
File "/Library/Python/2.7/site-packages/beatbox/_beatbox.py", line 332, in post
raise SoapFaultError(faultCode, faultString)
beatbox._beatbox.SoapFaultError: 'INVALID_FIELD' "INVALID_FIELD: from Assets__c where CreatedDate > 2012-08-08 ^ ERROR at Row:1:Column:1061 value of filter criterion for field 'CreatedDate' must be of type dateTime and should not be enclosed in quotes"
- 如何发送datetype对象来查询和修复此问题
import datetime
def return_datetime(year, month, day):
return datetime.datetime(year, month, day)
date = return_datetime(2012, 8, 12)
这将为您提供一个datetime对象:
import datetime
def return_datetime(year, month, day):
return datetime.datetime(year, month, day)
date = return_datetime(2012, 8, 12)
刚刚意识到,它需要SFDC方式格式的日期-
2012-08-15T00:00:00+00:00
参考-刚刚实现,它需要SFDC方式格式的日期-
2012-08-15T00:00:00+00:00
参考-