Move to the File Import Component¶
Your route to v3¶
Moving to Impowr v3 has two parts. Complete them in this order.
- Upgrade the package and restore access. Mandatory. Imports stop until it is complete.
- Move to the File Import component (this guide). Recommended. The legacy import component is being retired.
Not upgraded yet? Start with Upgrading to Impowr v3. The steps in this guide need the v3 package, and your users must be able to import before you change their pages.
Why move¶
The legacy import component keeps working on Impowr v3 once you have restored access, but it receives no further development. Its replacement is File Import (Impowr), a Lightning Web Component.
File Import (Impowr) follows Lightning styling and accessibility standards. It works on record pages, app pages, Experience Cloud pages and Flow screens. Users import in two clicks against a mapping you have chosen for them.
The legacy component is being retired and all new features are built for File Import (Impowr). Start your move now, one page at a time, so that you are ready before the retirement date is announced.
This guide is for Salesforce administrators on the pw_si package.
What changes¶
With the legacy component, the uploaded file went straight to Impowr processing storage and stayed there for a fixed period. With File Import (Impowr), the file is uploaded into Salesforce first.
- The file is stored as a Salesforce File in your org, linked to an Uploaded File record that holds the import status, the results and the mapping used.
- To run the import, Impowr copies the file to its processing service outside Salesforce. Processing storage holds working copies only, and deletes each one as its stage of processing finishes.
- Result files for successes, updates and errors are written back to the same Uploaded File record.
| Benefit | Detail |
|---|---|
| Your files are stored in your org | The source file and results are kept as Salesforce Files in your org, covered by your own sharing, backup and retention policies. |
| An audit trail | Each import has an Uploaded File record showing who imported what, when, with which mapping and with what outcome. |
| Less data held outside Salesforce | Working copies are removed as processing completes. |
| Undo | Eligible imports can be undone from the component. |
Your data still leaves your org during an import. Impowr processes each file in its hosted service, so working copies of the file, the results and the undo snapshot exist in Impowr processing storage while the import runs.
Uploaded files count towards your Salesforce file storage. Step 3 covers how to keep them tidy.
Before you start¶
- Complete the v3 upgrade and restore access for your users. See Upgrading to Impowr v3.
- List every Lightning page, app page, record page, Experience Cloud page and Flow screen that hosts the legacy component.
- For each import, confirm you can still open its mapping in the Impowr tab.
Mappings belong to the org they were created in. A mapping built in a sandbox is not available in production, and a sandbox refresh does not carry it across. If the sandbox has been refreshed or deleted, the mapping must be created again. Allow time for this before you plan the rollout.
Step 1. Create a Mapping Template for each mapping¶
File Import (Impowr) reads its mapping from a Mapping Template record in Salesforce. Create one for each mapping you use.
- Open the Impowr tab and select Preferences.
- Scroll to the Mapping List, find your mapping and select View JSON.
- Copy the JSON.
- Use the App Launcher to open Mapping Templates and click New.
- Enter a descriptive Name and a unique Developer Name, and paste the JSON into the Mapping (JSON) field.
- Save.
Choose each Developer Name carefully and do not rename it later. The component and the Impowr Flow action find the mapping by this name. Renaming it breaks every page and Flow that uses it.
A Mapping Template is a Salesforce record, so you can deploy it between orgs.
Step 2. Place the component¶
Repeat these steps for each page in your list.
- Open the Lightning page that hosts the legacy component, select the gear icon, then Edit Page.
- In the App Builder, find File Import (Impowr) under Custom – Managed and drag it onto the page.
- In the component settings, select your Mapping Template and set the Component Title.
- Remove the legacy component from the page.
- Save, and activate or assign the page if required.
On a record page, a mapping that uses a Record ID Tag receives the ID of the record being viewed.
Step 3. Set file retention¶
- Retention period. The Retain Linked Files For (Days) setting on the component controls how long an uploaded file is kept. The default is 90 days. The Uploaded File record remains after its files are removed, so your import history is kept.
- Automatic cleanup. Enable Automatic File Cleanup on the Impowr Setup page. A daily job then deletes files that are past their retention date. The user who enables the job needs the Impowr Cleanup User permission set.
Step 4. Test and roll out¶
- Test each page in a sandbox as a standard user, not an administrator.
- Run the same import through the legacy component and compare the records, field values and volumes.
- Deploy the page changes and the Mapping Template records to production.
- Tell your users about the new screen before it reaches them.
If a page shows an error after the move, see Troubleshooting.
After the move¶
Two further features are available with File Import (Impowr):
- Import File Action runs imports from a Salesforce Flow without a user screen.
- Platform Events start follow-on automation when an import completes.
For help, contact support@provenworks.com.