# How to reference a field from a Salesforce Lookup step

**URL:** <https://community.synatic.com/t/how-to-reference-a-field-from-a-salesforce-lookup-step/243>\
**Category:** Flows\
**Tags:** helper-functions\
**Created:** [June 3, 2022, 3:05pm UTC](https://community.synatic.com/t/how-to-reference-a-field-from-a-salesforce-lookup-step/243 "2022-06-03T15:05:02Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![navessa](https://yyz2.discourse-cdn.com/flex032/user_avatar/community.synatic.com/navessa/32/58_2.png) [@navessa](https://community.synatic.com/u/navessa)\
**Post date:** [June 3, 2022, 3:05pm UTC](https://community.synatic.com/t/how-to-reference-a-field-from-a-salesforce-lookup-step/243/1 "2022-06-03T15:05:02Z")

</div>

Illustrated below is an example of the Salesforce source step which is then doing a lookup in Salesforce (Salesforce Lookup step) to pull the correct Phone number.

 ![image](https://canada1.discourse-cdn.com/flex032/uploads/synatic/original/1X/7851302146d6cde3b3268018ce2dfd2e7a5908af.png)

The below image is the Salesforce source step which is selecting a few fields from the Opportunity object based on the Id and AccountId.

 ![image](https://canada1.discourse-cdn.com/flex032/uploads/synatic/original/1X/e48bac4d0809db24bb9352f44df0ebdba9d4e659.png)

The Salesforce Lookup step is looking up the Phone number from the Account object based on the AccountId from the previous step.

![image](https://canada1.discourse-cdn.com/flex032/uploads/synatic/original/1X/eec49668ec912c9b467f3bfd1a76013cee09f5d7.png)

To map the field from the lookup step , scroll to the bottom of the Salesforce **Lookup step** and click on the highlighted icon to add the field in the **Mappings** section as shown below.

 ![image](https://canada1.discourse-cdn.com/flex032/uploads/synatic/original/1X/291911cdcb36baa4895efed5e105e6e1cd6d3566.png)

The image below is the output of the Phone value with the rest of the records. Highlighted is the object name of the mapped field in the Salesforce lookup step.

**NB** : If you want to reference the field in a Calculator step, use **`input.record.fieldname`**. The fieldname will be the name of the field in the To Path field in the mapping. If it has a different field name in the To Path (not the same as the original fieldname), it will be **`input.record.ToPathFieldName.fieldname`**.

![image](https://canada1.discourse-cdn.com/flex032/uploads/synatic/original/1X/56432679a311c327ff5e4225e9eebc456b526a5d.png)

[Salesforce Lookup Limit](https://community.synatic.com/t/salesforce-lookup-limit/58)
