List records in objects
Examples and code snippets
List of accounts
title: List Salesforce accounts
type: jig.default
header:
type: component.jig-header
options:
height: medium
children:
type: component.image
options:
source:
uri: https://images.unsplash.com/photo-1605152276897-4f618f831968?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=2670&q=80
onFocus:
type: action.action-list
options:
actions:
- type: action.sync-entities
options:
provider: DATA_PROVIDER_SALESFORCE
entities:
- Account
datasources:
salesforce-accounts:
type: datasource.sqlite
options:
provider: DATA_PROVIDER_LOCAL
entities:
- entity: Account
query: SELECT id, '$.Name', '$.Type', '$.BillingCountry' FROM [Account] WHERE ('$.Type' LIKE @filter OR @filter IS NULL) AND ('$.Name' LIKE '%'||@search||'%' OR @search IS NULL)
queryParameters:
filter: [email protected]
search: [email protected]
children:
- type: component.list
instanceId: account-list
options:
data: [email protected]
isSearchable: true
maximumItemsToRender: 50
filter:
- title: All
value: ""
- title: Prospect
value: Prospect
- title: Customer - Direct
value: Customer - Direct
item:
type: component.list-item
options:
title: [email protected]
subtitle: [email protected]
label:
title: [email protected]
leftElement:
element: avatar
text: SF
List of Opportunities
Create a Stage detail jig
Last updated
Was this helpful?