The following SQL script will generate a Google Spreadsheet that will allow users to override email addresses. This is extremely helpful when merging old user accounts together.
- SELECT
- V1.Id,
- V1.Final_FullName as 'Old User (FullName)',
- V1.Final_FirstName as 'Old User (First)',
- V1.Final_MiddleName as 'Old User (Middle)',
- V1.Final_LastName as 'Old User (Last)',
- V1.Final_Status as 'Old User (Status)',
- V1.Final_Email as 'Old User (Email)',
- '' as 'New User (Email) - Fill In For EVERYONE',
- Script = CONCAT(''
- --IF cell A### is not blank
- , '=IF(INDIRECT("H"&ROW()) <> "",'
- --THEN: Generate the script using the ID in cell B###.
- , '"'
- , ' UPDATE'
- , ' __M_Users'
- , ' SET'
- , ' Final_Email = '
- , ' ''" & '
- , ' SUBSTITUTE(INDIRECT("H"&ROW()), "''", "''''") '
- , ' & "'''
- , ' WHERE 1=1'
- , ' AND Id = '
- , ' ''" & '
- , ' INDIRECT("A"&ROW()) '
- , ' & "'''
- , '"'
- --/THEN
- , ', '
- --ELSE
- , '"'
- , ' '
- , '"'
- --/ELSE
- , ')'
- )
- FROM
- __M_Users V1
- ORDER BY
- Final_Status,
- Final_FullName,
- Final_FirstName,
- Final_LastName,
- Final_Email
Once you generate the Google Sheet, you should share it with your customer with instructions similar to the following:
---
Hi Customer,
In prep for restoring your data to the [new system], I need you to fill out the Google Sheet included in this email.
An email address should be provided in Column H for each record listed.
The email address you provide MUST match the email address for a user listed in your [new APP] account.
Some of the users on the spreadsheet might be disabled or "machine" users. For these users, you should provide an email address of someone in your firm who exists in your [new APP] account. If something were mapped to one of these users, it will be linked to the new user post-migration.
When mapping former users, we generally recommend mapping to users of similar roles.
For example, if Jane Paralegal is a former employee, then Jill Paralegal might be a good substitute.
If you have any questions, please feel free to reach out.
---