288.8. 使用 Salesforce Recent Items API
若要获取最近项目,请使用 salesforce:recent
操作。此操作会返回 org.apache.camel.component.salesforce.api.dto.RecentItem
对象(List<RecentItem>)的 java.util.
<RecentItem>),其中包含 List
of the org.apache.camel.component.salesforce.api.dto.RecentItem 对象(ListId
、Name
和 Attributes
( 类型为
和 url
属性)。您可以通过指定 limit
参数设置为要返回的最大记录数来限制返回的项目数量。例如:
from("direct:fetchRecentItems") to("salesforce:recent") .split().body() .log("${body.name} at ${body.attributes.url}");
from("direct:fetchRecentItems")
to("salesforce:recent")
.split().body()
.log("${body.name} at ${body.attributes.url}");