【发布时间】:2020-07-24 20:49:54
【问题描述】:
我正在使用 apache camel 根据对字段 ID 和 CreatedDate 施加的条件进行 salesforce 查询以获取某些记录。这是toD 声明
.toD("salesforce:query?sObjectQuery=Select Id, Name, CreatedDate from Account where Id > '' and CreatedDate > 2019-01-03T12:12:27.000+0000 order by CreatedDate, Id limit 10&rawPayload=true")
这会返回这个错误响应
org.apache.camel.component.salesforce.api.SalesforceException: {errors:[{"errorCode":"MALFORMED_QUERY","message":"\nCreatedDate > 2019-01-03T12:12:27.0000000 order by CreatedDate, Id limit\n ^\nERROR at Row:1:Column:101\nline 1:101 no viable alternative at character ' '","fields":null}],statusCode:400}
看起来它忽略了创建日期中的+。我该如何解决这个问题?
【问题讨论】:
标签: java apache-camel salesforce