Examples
Example automations using the Salesforce BDK Book.
Complete Workflow Example
Here's a comprehensive example showing contact management:
# 1. Discover the object you want to work with
discover "contact" from salesforce
# 2. Retrieve existing contacts
retrieve some contacts from salesforce
the limit is 5
# 3. Create a new contact
create a json
use the above as the body
set the body's "LastName" to "Smith"
set the body's "FirstName" to "John"
set the body's "Email" to "[email protected]"
set the body's "Phone" to "555-1234"
create a contact in salesforce
the body is the body
# 4. Update the created contact
use the above as the created contact
set the created contact's "Title" to "Sales Manager"
update the contact in salesforce
# 5. Upload an attachment
upload an attachment to the contact
the file is the file
the file name is "business_card.jpg"
# 6. Download attachments
download some attachments from the contact
# 7. Work with reports
retrieve some reports from salesforce whose Name contains "Contact"
# 8. Send notification email
send an email in salesforce
the receivers are "[email protected]"
the subject is "New Contact Created"
the body is "A new contact has been added to Salesforce"
Last updated
Was this helpful?