capabilities.work

Get Records for a List View

A 2-step recipe with Salesforce. We can help you get access.

Recipe · 2 steps

Get Records for a List View

Retrieve a page of records for a specific list view of an object.

  1. Enumerate the list views accessible to the current user for the object so the requested list view can be confirmed before its records are loaded.
  2. Load the data and metadata for the requested list view, returning a page of records together with the list view label and sort configuration.
What you'll need to have ready
  • objectApiName: The API name of the Salesforce object (e.g. Account, Contact, MyObject__c).
  • listViewApiName: The API name of the list view (e.g. AllAccounts, RecentlyViewed).
  • pageSize: Number of records per page.
  • pageToken: Token for retrieving a specific page of results.
For your developer

Arazzo workflow salesforce:get-list-view-records, 2 operations: getListsByObjectName → getListView. Specs on APIs.io.