Apply

How to Create a Salesforce v4 Mapping

A Mapping Action is a link between an object in Apply and an object in Salesforce. Within the action itself, you can specify when fields will be synced with your Salesforce account.

The fields that are available within your Mapping Action will be solely based on the configurations of your Automation

For example, if the event of your automation is "application has been submitted", you'll only see mapping actions for applications. Likewise, if the event is related to users, you'll only see mapping actions that push user information. 

The program selected in the automation is also important - if the event is for program X, you'll only see mapping actions for that program.

When you are creating your Action you will see pre-set fields that you selected in your Automation:

  • Program Name (if applicable)
  • SurveyMonkey Apply Object

These actions are also accessible from the Mapping Actions tab.

Actions, showing number, title, direction, SM Apply object, Salesforce Object and where used
ColumnDescription
#The ID of the element
This is a unique ID of the automation and can be useful for troubleshooting purposes
TitleThe name of the Mapping
DirectionIdentifies whether the action is a Push or Pull of data
SM Apply Object- Organization
- User
- Application
- Application
- Task
- Decision
- Recommendation
- Review
Salesforce ObjectIdentifies which object the information will be synced with, in Salesforce
Where usedThe number of places where the mapping actions are being used. Hover over the field in the site to see more details
EllipsisEdit or Delete the Mapping from the site
NOTE: You will not be able to delete an action that is connected to an automation.

To begin creating your action:

  1. Create your Automation
  2. Within the Mapping Actions section of the Automation, click on the drop-down
  3. Click Create Mapping Action
  4. Enter the Name of the Action. Use the name of your Salesforce Object for easy organization in SurveyMonkey Apply
  5. Optional: Enter a Description
  6. Select to Push SM Apply data to Salesforce or Pull data from Salesforce to SM Apply
  7. Select the Salesforce Object
  8. Configure your mapping action. For more information see the sections on Push Mapping Action and Pull Mapping Action
  9. Save & Close your Mapping Action
  10. Add the action to your Automation
  11. Save & Close the Automation
Mapping Actions dropdown to show No mapping action found

Some of the selections you make in your Automation will be pre-populated into your Action for easy reference.

This section is for choosing which particular fields you want to map between the source and destinations objects. Required Salesforce fields may be found in PUSH actions and will appear automatically.

Field mappings for Push mapping action, showing Apply field with application url dropdown, and salesforce field with submission url dropdown
SettingDescription
UniqueThe unique field, if selected, will cause the system to check to see if an object already exists with the same value. This field is also known as an "upsert" field.

Here are a few things to take into consideration when making a field mapping Unique:

- Multiple fields can be specified as unique and then the match must be successful in all specified fields

- All unique fields must have a value in order for the sync to work.

- SurveyMonkey Apply does a search on the fields the first time the action runs.
> If it does, it will update the existing object rather than create a new one, thus ensuring that only one record in Salesforce has that value.
> If we find more than one SF object, it will fail as we have no way of knowing which object to update.
> This is commonly used with email addresses or IDs to make sure that duplicate records aren’t created for the same object.

- This is case insensitive. If the field changed from “apply@surveymonkey.com”' to 'Apply@surveymonkey.com”' then the field will be updated; a new one would not be created.
Apply FieldSelect what data from the application you want to sync:

Available Apply Fields include:
- Form Responses
- Basic Fields about Application and Owner
- Application and Applicant Custom Fields
- Custom: use specified Default Data option

The fields available will be dependent on the SurveyMonkey Object that is selected.
Salesforce FieldSelect the Salesforce field that data will be pulled from, into the SM Apply field.
Default DataSpecifying a default value for the data will replace the value of a field with the value specified IF the source field being mapped doesn’t have a value. If mapping “Custom - use specified default data option” as described above, the default data is always used.

We support Lookup fields, both optional and required, along with Master-Detail fields. For more information see Salesforce's help documentation on Relationships Among Objects.

This is found at the bottom of the Create Mapping Action area of the Push Action.

You can choose to create a relationship between an already existing Apply Action and the Salesforce Field. The object must be the same in order to create the relationship, otherwise, it will show an error:

Relationship Mappings, mapping action with dropdown showing test mapping action, Salesforce field and object with dropdown Owner ID (group)

Default data is often used to specify the RecordType ID string if applicable. For more information on locating the Record Type ID in Salesforce, you can refer to Salesforce's help documentation on How to Find the ID of a Record Type

If the selected Salesforce object type supports it, and if it is a Push action, you will be able to specify any file attachments that should be synced. File attachments are synced separately from the fields themselves, and the newly created Attachment object in Salesforce will be linked to the created record.

PULL Actions are very similar to PUSH Actions, however, we are pulling information from a Salesforce field into an Apply field. A PULL action will only occur when the selected Salesforce field matches the mapped, corresponding Apply field. This means that we need to have this information in Apply first.

This section is for choosing which particular fields you want to map between the source and destinations objects.

Field mapping for Pull, select the fields where values must match before the pull action will occur Salesforce field
SettingDescription
Apply FieldSelect what data from the application you want to sync:

- Available Apply Fields include:
- Form Responses
- Basic Fields about Application and Owner
- Application and Applicant Custom Fields
- Custom: use specified Default Data option

The fields available will be dependent on the SurveyMonkey Object that is selected.
Salesforce FieldSelect the Salesforce field that data will be pulled from, into the SM Apply field.
Default DataSpecifying a default value for the data will replace the value of a field with the value specified IF the source field being mapped doesn’t have a value. If mapping “Custom - use specified default data option” as described above, the default data is always used.

Pulls typically occur on the creation of the submission or into a user’s eligibility form, however other use-cases can be satisfied. The Automation must be set up correctly and with the understanding of the limitations as described above.

Your Salesforce schema is a reflection of all the objects available to you. Any time you create new custom fields or custom objects in Salesforce, you will want to see the changes reflected in your Salesforce integration within Apply.

The schema will automatically refresh every 24 hours, however, to manually refresh the schema:

  1. Create or Edit your Mapping Action
  2. Click Refresh Salesforce Schema
Salesforce object, application in dropdown. Refresh Salesforce Schema grey button.