What Salesforce Triggers and Actions are Supported?#

Supported Triggers#

  • New Case - Triggers when a new case is created.
  • New Account - Triggers when a new account is created.
  • New Task - Triggers when a new task is created.
  • New Lead - Triggers when a new lead is created.
  • New Custom Object Type - Triggers when you add a new type of custom object to Salesforce. Typically you want to use the "New Custom Object" trigger, not this.
  • New Custom Object - Triggers when a new custom object (of the type you choose) is created.
  • New Note - Triggers when a new note is created.
  • New Contact - Triggers when a new contact is created.
  • New Outbound Message - Triggered when a new Outbound Message is received.
  • New Folder - Triggers when a new folder is created.
  • New Opportunity - Triggers when a new opportunity is created.
  • New Event - Triggers when a new event is created.

Supported Actions#

  • Create Case - Create a new case.
  • Create Account - Create a new account.
  • Create Task - Create a new task.
  • Create Case Comment - Create a new comment on a case.
  • Create Lead - Create a new lead.
  • Create Note - Create a new note.
  • Create Custom Object - Create a new custom object (of the type you choose).
  • Create Contact - Create a new contact.
  • Update Opportunity - Update an existing opportunity.
  • Create Attachment - Create a new attachment (max 25MB).
  • Update Contact - Update an existing contact.
  • Update Custom Object - Update an existing custom object (of the type you choose).
  • Create Document - Create a new document.
  • Create Opportunity - Create a new opportunity.
  • Create Event - Create a new event.
  • Update Lead - Update an existing lead.

Supported Searches#

  • Find a Case - Find a Case by a field and value you choose.
  • Find an Account - Find an Account by a field and value you choose.
  • Find a Contact - Find a Contact by a field and value you choose.
  • Find a Lead - Find a Lead by a field and value you choose.
  • Find a Folder - Find a Folder by a field and value you choose.
  • Find a Custom Object - Find a Custom Object by a field and value you choose.
  • Find an Opportunity - Find an Opportunity by a field and value you choose.
  • Find an Event - Find an Event by a field and value you choose.
  • Find a Task - Find a Task by a field and value you choose.

Popular Things To Do With Salesforce#

Dealing with Salesforce Custom Objects#

Salesforce is very well supported on Zapier. You can Trigger off the creation of any object inside of Salesforce, including Custom Objects which might have been installed by another 3rd party application. Likewise, you can create any object inside of Salesforce as an Action.

If the object type you want to Trigger off of, or create, isn't visible inside the dropdown menu, choose the "Custom Object".

Custom Objects

Later on inside the Zap editor, you'll be given the chance to decide which Custom Object you want to Trigger off of, or create.

Choosing a Custom Object

Note: You can generally choose any object from the list for triggering. However, on the Action side, certain objects may not allow creation. If after choosing a Custom Object type, you can see no fields (and just see a "Continue" button) this implies there are no fields to create and you'll need to either choose a different Custom Object or an administrator will need to modify the object definition inside Salesforce, first. Here is an example of a Custom Object that does not allow creation (it has no fields):

Missing Custom Object Fields

↑ Was this documentation useful? Yes No (Suggest Edits)

Common Problems with Salesforce#

Salesforce is disabling TLS 1.0 in July 2017 (Your Zaps will keep working with no changes)#

Zapier already uses TLS 1.2 for apps which support it (including Salesforce) so their new minimum of TLS 1.1 will work fine with Zapier. You will not need to make any changes to your Zaps, and they will keep running as-is.

Timeout Errors#

This is a somewhat common class of errors for Salesforce, which might manifest itself when working inside the Zap Editor or when receiving automated alert emails. Timeout errors indicate that Zapier's request to Salesforce took too long to get an answer.

Timeout errors can be caused by any number of things:

  • Lots of data (think: enterprise level) in your Salesforce Account, specifically of the type you're trying to access.
  • Ephemeral outages or Salesforce API issues. Check our API Status Board for possible issues.

Most of the time these errors are transient and you simply need to wait a while. If the error happened for an On Zap on the Trigger side (ie. Salesforce as a Trigger), you can safely ignore it (we will automatically recover this scenario). If the error happened for an On Zap on the Action side, you can attempt to replay failed Tasks within our Task History interface.

Trigger Limit#

Right now, Salesforce can trigger up to 200 items at one time. If you attempt to add more than 200 items at once, Zapier will only be able to see the last 200.

Custom Fields/Objects Not Loading#

Sometimes when you add custom fields or objects in Salesforce, they won't show up right away in the portion of your zap where you map trigger data to the action template. An easy way to fix this on the trigger side is to submit a new entry with those custom fields filled in.

If you are dealing with actions, here's a couple steps that may help:

  • Hard refreshing the page (Shift+F5 on a PC or CMD+Shift+R on a Mac) a couple times
  • Copy that zap and edit the copied version to see if those fields show up
  • Recreate the zap from scratch
  • Wait a while longer, sometimes it takes a little while for the cache to refresh with those fields

The Standard Middle Name and Suffix fields Aren't Loading#

We don't yet support the standard Middle Name and Suffix fields that Salesforce released in 2015. A workaround is to create custom fields for the Middle Name and the Suffix. We plan to upgrade this in the future so the standard fields are available.

Salesforce Communities#

We do not support Salesforce communities at this point in time.

"TotalRequests Limit exceeded" Error#

That error means that the number of times Zapier is allowed to ask Salesforce for data has been exceeded for your connected account.

There are 2 ways Salesforce limits requests to their API (how Zapier asks for data): 1. Requests within a 20-second period (called "concurrent" requests) 2. Total API requests within a 24-hour period

That info can be found in their documentation here.

Upgrading to a Salesforce plan with more users and higher request limits will stop this error from occurring.

Field Integrity Exception Error#

When you use the Create Task action, you can connect a task to a person or an object using these two fields:

fields

If you're getting a Field Integrity Exception error, it means that you're trying to connect a person using the Related To field or an object using the Name field. If you want to connect the task to a person (like a contact or lead), use the Name field. If you want to connect the task to an object (such as an opportunity or an account), use the Related To field.

Pick the correct field and select "Use A Custom Value," then pass the ID of the person/object from a previous step.

value

How Search Actions Work#

Salesforce search actions will return the most recently created record that meets the search criteria, even if there are multiple records that match.

My Create Note Task Was Successful, but I Can't See the Note#

The Create Note action adds notes to the legacy 'Notes & Attachments' (also called "Classic Mode") function in Salesforce. The notes are not viewable in the new HTML version of Salesforce.

My Event Showed up on the Wrong Date#

When using the Create Event action, if you just want to specify a Due Date, use the Due Date Only field. If you want to specify both a Due Date and Time, use the Due Date Time field, but fill in both a date and a time. If you only put a time in this field, you'll end up with an event on today's date at that time.

Zaps set up like this will ignore the Date field:

Zaps set up like this will properly set the Date and Time field in Salesforce:

I Want So Select Multiple Options in a Multi-Pick List Field#

Salesforce requires that multi-pick items have a ; between them. You can set it up like this:

Or if you're passing data from a previous step, you can use the Formatter to build a string with ; as the separator.

Can I Trigger from Updated Objects on Salesforce?#

Whilst there is no official Trigger for updated objects (like updated opportunities, updated custom objects, updated contacts, etc.) you can likely get the same result by using the New Outbound Message Trigger.

Please note for this handy workaround, your Salesforce account must support workflow rules.

To do this, please follow these steps:

  1. Firstly, create a Zap using the New Outbound Message Trigger. This trigger will create a webhook you can use on whatever workflow/trigger you want in Salesforce later.

  2. Next, in your Salesforce setup area, you will need to create a new Workflow Rule. This rule will allow you to set the conditions that will trigger the outbound message to be sent out. This is what will trigger your Zap. In the example below, this workflow will trigger when a lead is updated: You can read more on creating workflows on Salesforce here.

  3. Once you have saved that workflow, on the new screen that appears under "Immediate Workflow Actions" use the "Add Workflow Action" dropdown, choose "New Outbound Message" like this:

  4. Here you can choose the object and the fields from that object that you want to send to your Zap. You will also need to enter the Webhook URL from your Zap's Trigger options in the "Endpoint URL" field like this:

You can read more creating new outbound messages on Salesforce here.

When you have done that you can come back and finish setting up your Zap. This workflow will send an Outbound Message when your workflow triggers, which will trigger your Zap!

↑ Was this documentation useful? Yes No (Suggest Edits)
Get Help