Record ID Tags¶
Why Use a Record ID Tag?¶
With traditional import tools, users need to copy 18-character Salesforce record IDs and enter them into the import file. This would be done to update an existing record or associate imported records to an existing record. Whilst powerful, this can introduce user-training complications and increase the chance of mistakes, especially when importing at scale.
In Impowr, a Record ID Tag can be introduced to replace the need for users to handle Salesforce’s 18-character record IDs.
When used in conjunction with the File Import Component placed on a Lightning Record Page, the tag will be populated by the current page’s record ID. This allows users to update the record they are viewing, or more importantly, import child data to that record. This is ideal for importing Products to an existing Opportunity.
The File Import Component also provides a dedicated parameter where a custom record ID can be entered. This is useful for more advanced implementations such as embedding the File Import Component in a Salesforce Flow Screen.
There are two approaches to implement the Record ID Tag functionality, each having its own benefits. Continue through the article to learn more.
Step 1: Using a Record ID Tag¶
Option A – Constant Value¶
This is the preferred approach for inserting child records to an existing record. For example, if you are importing Contacts to an existing Account. In this scenario, the {!Record.Id} constant value would be mapped to the Account ID field on the Contact.
- In the Field Mapping stage of creating a mapping, add a Constant Value.
- Enter {!Record.Id}.
- Map it to the relevant Salesforce field.
- Save the mapping.

Option B – Use {!Record.Id} in File¶
Use this approach when you need to update an existing record (for example: an Opportunity) via the File Import Component. For instance, you might have a file containing just one row of data that updates an existing Opportunity. This is possible because the ID column is available during the Import Type stage of the mapping process. When performing an Update or Upsert, the ID field can be used as a Matching Condition.
- Add {!Record.Id} into each row of your spreadsheet in place of the ID value.
- Save the file.

Step 2: Configuring the File Import Component¶
The Record ID Tag will be populated by one of two ways. If the File Import Component is placed on a Lightning Record Page, the ID of the record being viewed at runtime will be used. There are no additional settings needed to enable this option. Alternatively, there is a parameter available to enter an 18-character record ID. If this field is populated, this will be the record ID used.
For instructions on adding the component to a Salesforce record page, see Add the Impowr File Import Component to a Lightning page.

This configures the File Import Component to pass the specific record ID to populate the {!Record.Id} tags in the file when in operation.
Real-World Use Case¶
The File Import Component provides the ability to import Opportunity Line Items directly to the Opportunity being viewed. Each of the Opportunity Line Items will automatically be associated with the Opportunity the user is viewing.
This removes the requirement to copy a Salesforce record ID into the file every time you want to add related records to an existing record.