This repository was archived by the owner on May 12, 2023. It is now read-only.
Repository navigation
Field Mappings
Doug Ayers edited this page Apr 14, 2022
·
5 revisions
Home > Field Mappings
Map source fields as inputs to the target action.

- Confirm the field is included in your data source.
- Ensure that your user has read object and field permissions.
- If using a Named Credential, ensure that user also has appropriate object and field permissions.
- If using SOQL, alias the aggregate functions. Aggregate functions like
COUNT,MIN,MAX,AVG,SUMand others must be aliased to be selectable in the Field Mappings step. For example, consider the querySELECT COUNT(Id) RecordCount, Type FROM Account GROUP BY Type. Without the RecordCount alias then only the Type field would be available on the Field Mappings step. - If using SOQL, child relationship queries are not shown in the Field Mappings step. For example, consider the query
SELECT Id, Name, ( SELECT FirstName FROM Contacts ) FROM Account. The child relationship querySELECT FirstName FROM Contactsis ignored. Therefore, and for performance, do not use child relationship queries in yourSELECTstatement.
- For Flows, ensure the variable's Availability Outside the Flow has Available for input selected.
- For Quick Actions, ensure the field is on the action's layout.
- For Invocable Apex, ensure the class variable has the @InvocableVariable annotation.
- For Anonymous Apex, the field mappings step is not used. Instead, your script handles all field mapping and logic within its
executemethod.
Home | About | Getting Started | Sponsor | Copyright © 2017-2023 Douglas C. Ayers. Terms of use.
