Map a CRM user to a user data field in a workflow

Updated

Who can do this: Super Admins, Creators, Collaborators and Integrators

A workflow can fill a project data field of type User from the CRM record that triggers it. Use this to assign the right internal user to each new project, such as the CSM or account executive who owns the deal in Salesforce or HubSpot. You can also set the field to one fixed person.

Before you begin

  • The workflow lists the project data fields from the playbook it creates projects from, plus any project data fields set to apply to all projects. The User-type field has to be one of these, and you can't add a field from this step. To add one, see Project and playbook data fields.

  • You need permission to edit workflows to change the mapping, and permission to publish workflows to publish it.

  • Each person you want to match needs an active internal user in OnRamp with the same email address as in your CRM.

Map the field from the trigger record

  1. Go to Workflows and open the workflow.

  2. Select Edit from v<number> so you can change the workflow.

  3. Select the Data Fields step.

  4. Under Project Data Fields, find the User-type field. To narrow the list, enter its name in Search data fields.

  5. Set the field's source to From trigger object.

  6. In Select field from trigger object, choose the CRM field that identifies the person:

    • A lookup field, such as Opportunity.Owner.

    • A text field that holds an email address. Its value is used directly, so go to the save step.

  7. If you chose a lookup field, choose the field on the related record that holds the email in User email field. OnRamp pre-selects it when it finds an obvious match. If it can't, you see No email field was auto-detected on this CRM object -- pick one from the list.

  8. Select Save at the top of the workflow.

  9. Select Publish so live runs use the mapping.

Publish stays unavailable while the workflow has unsaved changes, so save first.

How the match works

When the workflow runs, OnRamp reads the email from the mapped field, resolving the lookup first if there is one. It then looks for an active internal user in your organization with that email address. The match ignores case and spaces around the address. Customer users and integration or API user accounts are never matched.

If it finds a match, that user is set on the project's field, and the run's log records the match.

If it can't set the field, the workflow skips it, logs why and still creates the project. The field then gets the playbook's value or default, and it's blank only when the playbook has neither. A field is skipped when:

  • No active internal user has that email address.

  • The trigger record has no value in the mapped field.

  • No User email field is chosen for the lookup.

  • The text field doesn't hold a valid email address.

To read a run's log and re-run it after you fix the mapping, see Re-running a workflow execution.

Optional: Always assign the same person

To assign one person no matter which record triggers the workflow, set the field's source to Fixed and pick the user.

Mapping from the trigger record works for project data fields only. A User-type account data field can only be set to a fixed user.

More in Mapping CRM data