我使用击打箱从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' "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"发布于 2012-08-16 19:26:42
刚刚实现,需要用SFDC方式- 2012-08-15T00:00:00+00:00格式的数据。
参考- dateformats.htm
发布于 2012-08-16 19:15:34
这将为您提供一个datetime对象:
import datetime
def return_datetime(year, month, day):
return datetime.datetime(year, month, day)
date = return_datetime(2012, 8, 12)https://stackoverflow.com/questions/11993670
复制相似问题