Delete records in objects
Examples and code snippets
Delete a Salesforce Account record
title: Delete Account
description: Delete a Salesforce account
type: jig.list
header:
type: component.jig-header
options:
height: medium
children:
type: component.image
options:
source:
uri: https://images.unsplash.com/photo-1600881217197-068e1d79ffb8?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=2232&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]
data: [email protected]
item:
type: component.list-item
instanceId: [email protected]
options:
title: [email protected]
rightElement:
element: button
title: Delete
onPress:
type: action.action-list
options:
isSequential: true
actions:
- type: action.confirm
options:
isConfirmedAutomatically: false
onConfirmed:
type: action.execute-entity
options:
provider: DATA_PROVIDER_SALESFORCE
entity: Account
method: delete
data:
id: [email protected]
onSuccess:
title: Account deleted
modal:
title: Are you sure you want to delete the Account?
- type: action.go-back Last updated
Was this helpful?