Salesforce Lightning Upgrade

To preserve your data when you upgrade your Salesforce Lightning installation, first back up your data and then re-import it after the upgrade is complete. For more information on installing Salesforce Lightning, see Salesforce Installation and Configuration.

Note: You must download your data within 48 hours of uninstalling Salesforce Lightning.

On this page:

Back up your data

You can automatically download your data during the uninstall process in Salesforce Lightning.

  1. Go to the ‘Setup’ page.

  2. Search for installed packages.

  3. Locate the package named ‘messagefocus’ and then click the ‘Uninstall’ link.

  4. Review the uninstall settings:

    Uninstall settings

    • Ensure that the ‘Save a copy of this package's data for 48 hours after uninstall’ option is selected. If it is not, tick the radio button to select it.

    • Tick the ‘Yes, I want to uninstall this package and permanently delete all associated components’ checkbox to select it.

  1. Click ‘Uninstall’.

    The uninstall process generates the data backup files and uninstalls Salesforce Lightning.

    Note: If you encounter a problem with the uninstall process, you may need to remove any custom elements that you have added.

  1. Go back to the ‘Installed Packages’ page.

    Installed packages

  2. To download the MessageFocus data files to a folder, locate the relevant uninstalled packages that will have been generated and then click the ‘Data’ link for each one.

  3. Make a note of the folder where your data files are stored.

Re-import event data

After you finish uninstalling Salesforce Lightning, you can restore the following event data:

  • Campaigns

  • Launches

  • Launch events

Note: You must have downloaded your data within 48 hours of uninstalling Salesforce Lightning.

Re-import campaigns data

You must prepare your campaigns data files to replace the account ID before re-importing them.

To prepare your files:

  1. Go into the folder containing your downloaded data files.

  2. Open the ‘MFCampaign__c’ file.

  3. Locate the rows for ‘amf__mfAccount__c’.

    You will need to change the account ID to the new instance that is created when the new instance of the integration is generated.

  1. To change the account ID, go to the ’MessageFocus Accounts’ tab.

    MessageFocus Accounts tab

  2. Click into the account. Make a note of the unique ID in the URL of the page, as highlighted in the following example:

    lightning/r/amf__MFAccount__c/a024K000003YvNBQA4/view

  1. In the open ‘MFCampaign__c’ data file, update the account ID in the ‘amf__mfAccount__c’ rows.

  2. Be sure to save your changes.

Next, you will re-import your campaigns data.

Note: The importing process in the instructions below uses Workbench, a Salesforce-specific third-party importer application. For more information, see https://workbench.developerforce.com/insert.php.

You can also use the Dataloader application, which has similar functionality, but it does not have an option to run queries on the existing data, which is needed in some steps. For more information, see https://dataloader.io/static/#tasks.

To re-import your campaigns data:

  1. In the Workbench app, go to the ‘Data’ tab, and then select ‘Insert’ from the dropdown list.

    Workbench form

    Note: This form is available in the Workbench app and is subject to change.

  2. From the ‘Object Type’ dropdown list, select 'amf__MFCampaign__c'.

  3. Select ‘Choose file’, navigate to the downloaded data file folder, and then select ‘MFCampaign__c.csv’.

  4. Click ‘Next’ to open the Field Mapping page.

  5. Click ‘Map Fields’, which displays the mapping preview.

  6. Click ‘Confirm Insert’ to start the import process.

  7. When the import is competed, go to the ‘MessageFocus Campaigns’ tab in the integration to verify that the campaigns have been imported correctly.

Re-import launches data

You must prepare your launches data files to replace the campaign’s unique IDs before re-importing them.

Note: The importing process in the instructions below uses Workbench, a Salesforce-specific third-party importer application. For more information, see https://workbench.developerforce.com/insert.php.

You can also use the Dataloader application, which has similar functionality, but it does not have an option to run queries on the existing data, which is needed in some steps. For more information, see https://dataloader.io/static/#tasks.

To prepare your files:

  1. In the Workbench app, go to ‘Queries’.

  2. Select ‘SOQL Query’ from the dropdown list.

    Workbench form

    Note: This form is available in the Workbench app and is subject to change.

  1. In the query builder, make sure the ‘Object’ is 'amf_MFCampaign__c'.

  2. Select the 'ID' and 'name' fields.

  3. Make sure the ‘View as’ option is set to ‘Bulk CSV’.

  4. The query should show at the bottom, as follows:

    SELECT Id,Name FROM amf__MFCampaign__c

  1. Click ‘Query’.

    When the query is complete, the results page opens.

  1. In the Batches section of the results page, click the ‘Download’ icon in the ‘ID’ column.

    The new ‘amf__campaign__c’ IDs are downloaded to a folder.

    Next, you will map these IDs to the corresponding ‘amf__campaign__c’ rows in the ‘MFLaunch__c’ file from the downloaded data folder.

  1. Go into the folder containing your downloaded data files.

  2. Open the ‘MFLaunch__c’ file.

  3. For the rows within the ‘amf__campaign__c’ column, update with the corresponding new IDs from the query file.

  4. Be sure to save your changes.

Next, you will re-import your launches data.

To re-import your launches data:

  1. In the Workbench app, go to the ‘Data’ tab, and then select ‘Insert’ from the dropdown list.

    Workbench form

    Note: This form is available in the Workbench app and is subject to change.

  2. From the’ Object Type’ dropdown list, select 'amf__MFLaunch__c'.

  3. Select ‘Choose file’, navigate to the downloaded data file folder, and then select ‘MFLaunch__c.csv’.

  4. Click ‘Next’ to open the Field Mapping page.

  5. Click ‘Map Fields’, which displays the mapping preview.

  6. Click ‘Confirm Insert’ to start the import process.

  7. When the import is competed, go to the ‘MessageFocus Campaigns’ tab in the integration to verify that the campaigns have been imported correctly.

Re-import launch events data

You must prepare your launch events data files to replace the campaign’s IDs and reformat the date/time format before re-importing them.

Note: The importing process in the instructions below uses Workbench, a Salesforce-specific third-party importer application. For more information, see https://workbench.developerforce.com/insert.php.

You can also use the Dataloader application, which has similar functionality, but it does not have an option to run queries on the existing data, which is needed in some steps. For more information, see https://dataloader.io/static/#tasks.

To prepare your files:

  1. In the Workbench app, go to ‘Queries’.

  2. Select ‘SOQL Query’ from the dropdown list.

    Workbench form

    Note: This form is available in the Workbench app and is subject to change.

  3. In the query builder, make sure the ‘Object’ is ‘amf_MFLaunch__c’ .

  4. Select the 'ID' and ‘amf_mfCampaign__c’ fields.

  5. Make sure the ‘View as’ option is set to ‘Bulk CSV’.

  6. The query should show at the bottom, as follows:

    SELECT amf__mfCampaign__c, Id FROM amf_MFLaunch__c

  1. Click ‘Query’.

    When the query is complete, the results page opens.

  1. In the Batches section of the results page, click the ‘Download’ icon in the ‘ID’ column.

    The new ‘amf__campaign__c’ IDs are downloaded to a folder.

    Next, you will map these IDs to the corresponding ‘amf__mflaunch__c’ rows in the ‘MFLaunchEvent__c’ file from the downloaded data folder. You will also update the ‘amf__timestamp__c’ field to the following format:

    'YYYY-MM-DDThh:mm:ssZ'.

  2. Go into the folder containing your downloaded data files.

  3. Open the ‘MFLaunchEvent__c’ file.

  4. Locate the rows for ‘amf__mflaunch__c’ and update with the new IDs from the query file.

  5. Select the ‘amf_timestamo_c’ column, right-click, and then point to ‘Format cells” and select ‘Custom category.” Add the following type:

    'YYYY-MM-DDThh:mm:ssZ'.

  1. Be sure to save your changes.

Next, you will re-import your launch events data.

To re-import your launch events data:

  1. In the Workbench app, go to the ‘Data’ tab, and then select ‘Insert’ from the dropdown list.

    Workbench form

    Note: This form is available in the Workbench app and is subject to change.

  2. From the ‘Object Type’ dropdown list, select 'amf__MFLaunchEvent__c'

  3. Select ‘Choose file’, navigate to the downloaded data file folder, and then select ‘MFLaunchEvent__c.csv’.

  4. Click ‘Next’ to open the Field Mapping page.

  5. Click ‘Map Fields’, which displays the mapping preview.

  6. Click ‘Confirm Insert’ to start the import process.

  7. When the import is competed, go to the ‘MessageFocus Campaigns’ tab in the integration to verify that the campaigns have been imported correctly.