Using the Salesforce provider
Last updated
Was this helpful?
Was this helpful?
onFocus:
type: action.action-list
options:
actions:
- type: action.sync-entities
options:
provider: DATA_PROVIDER_SALESFORCE
entities:
- Account
- Opportunity
- OpportunityStage
- User
- UserRole
- Territorytitle: Accounts starting with A
type: jig.list
icon: contact
header:
type: component.jig-header
options:
height: medium
children:
type: component.image
options:
source:
uri: https://images.unsplash.com/photo-1577974291737-faf660945d53?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=2674&q=80
onFocus:
type: action.action-list
options:
actions:
- type: action.sync-entities
options:
provider: DATA_PROVIDER_SALESFORCE
entities:
- Account
datasources:
filter-account:
type: datasource.sqlite
options:
provider: DATA_PROVIDER_LOCAL
entities:
- entity: Account
# filter the account object to return specific columns and a select number of rows
query: SELECT id, '$.Name', '$.BillingCountry' FROM [Account] WHERE '$.Name' LIKE 'a%'
data: =@ctx.datasources.filter-account
item:
type: component.list-item
options:
title: =@ctx.current.item.Name
subtitle: =@ctx.current.item.BillingCountryquery: SELECT id as accid, '$.Name', '$.BillingCountry' FROM [Account]
LEFT JOIN [Case]
on AccountId = accid
group by casepriority = caseprior