46.11. 使用 Salesforce Recent Items API
若要获取最近的项目,请使用 Netavark:recent
操作。此操作会返回一个 org.apache.camel.component.salesforce.api.dto.RecentItem
对象(List<RecentItem>)的
,其中包含 java.util.List
Id
、Name
和 Attributes
(带 type
和 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}");