我使用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' "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"
这将为您提供一个日期时间对象:
刚意识到,它需要SFDC-way-
2012-08-15T00:00:00+00:00
格式的日期引用-http://www.salesforce.com/us/developer/docs/api/Content/sforce_api_calls_soql_select_dateformats.htm
相关问题 更多 >
编程相关推荐