54.11. 使用 Salesforce 最新的项目 API
要获取最新的项目,请使用 Salesforce:recent
操作。此操作返回一个 org.apache.camel.component.salesforce.api.dto.RecentItem
对象的 java.util.List
(List<RecentItem>
),它包括 Id
、Name
和 Attributes
(带有 type
和 url
属性)。您可以通过将 limit
参数设置为要返回的最大记录数来限制返回的项目数量。例如:
from("direct:fetchRecentItems") to("salesforce:recent") .split().body() .log("${body.name} at ${body.attributes.url}");