Salesforce picklist options don't match in automation actions

Updated

Applies to: Super Admins, Creators and Integrators using the Update Salesforce Field action

Contributors and Collaborators don't see a project's Automations tab.

Why it happens

When you update a Salesforce picklist field with an automation, the values under Salesforce data can differ from what Salesforce shows. That's because OnRamp keeps a saved copy of each Salesforce object's fields, called the fields cache. If someone changed the picklist in Salesforce after the cache was saved, OnRamp still lists the old values.

Refreshing the fields cache brings in the current values. It only updates OnRamp's saved copy and makes no changes in Salesforce.

Fix it

The Update Salesforce Field action has different controls on a project's Automations tab than in a playbook automation or the Automations Library. Follow the steps for where your automation lives.

On a project's Automations tab

  1. Open the project and go to the Automations tab.

  2. Open the automation that uses the Update Salesforce Field action.

  3. Under Salesforce Object Entity, make sure the Salesforce record you're updating is selected. This list shows the Salesforce records linked to the project and to its account. If you see Selected integration entity not found. Please select one below., select the record again.

  4. Select the refresh button next to Salesforce Object Entity. Its tooltip says it updates the fields cache in OnRamp, and that no changes will be made to Salesforce. You can't use the button until a record is selected.

  5. Under Map fields to update, open the With this data options for your picklist field again, and select Salesforce data to see the updated values.

In a playbook automation or the Automations Library

The refresh buttons appear only when you can edit the automation. If it's read-only, they're hidden.

  1. Open the automation that uses the Update Salesforce Field action.

  2. Check that Object to update shows the right Salesforce object.

  3. Select the refresh button next to Field to use as reference. This refreshes the fields cache for that object and brings in new picklist values. You can't use it until an Object to update is selected. The refresh button next to Object to update only reloads the list of objects, not picklist values.

  4. Check Field to use as reference. After the refresh, it resets to a default field, often a name field, and your next change to the action saves that default. If it isn't the field you want, select it again.

  5. Under Map fields to update, open the With this data options for your picklist field again, and select Salesforce data to see the updated values.

Important: If you choose a different Object to update, every field mapping already set on the action is cleared. Only switch objects if you mean to.

Refresh every Salesforce object at once

If several objects are out of date, you can refresh the cache for all Salesforce objects and fields together.

  1. Go to Settings > Integrations+ and open your Salesforce connection.

  2. In the Actions table, find the Refresh data row and select Refresh Data.

  3. Confirm in the dialog. It warns that the refresh can take a long time to complete, and that no changes will be made to Salesforce.

When it finishes, reopen the automation and select Salesforce data again.

Other things to check

Salesforce data is only available when the field you're updating is a single-select picklist or a true/false field. For other field types, it's turned off. That includes multi-select picklists, which OnRamp treats as text fields, so refreshing won't make Salesforce data available for them.

If the action shows No salesforce integration setup instead of these settings, Salesforce isn't connected yet. Follow Connect Salesforce to OnRamp, then come back to the automation.

Still stuck?

Contact support. Include a link to the project or playbook, the automation's name, the Salesforce object, and the picklist field.

More in Integrations & sync