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