The following SQL script will generate a Google Spreadsheet that will allow users to override document category names. This is extremely helpful when merging systems.
- SELECT V1.Id, V1.Final_ReferenceCode as 'Old Code', V1.Final_Subject as 'Old Name', V1.Final_Status as 'Status', '' as 'New Reference Code - Fill In For ALL', '' as 'New Name - Fill In For ALL', Script = CONCAT('' --IF cell A### is not blank , '=IF(INDIRECT("F"&ROW()) <> "",' --THEN: Generate the script using the ID in cell B###. , '"' , ' UPDATE' , ' __M_Documents_Digital_Categories' , ' SET' , ' Final_ReferenceCode = ' , ' ''" & ' , ' SUBSTITUTE(INDIRECT("E"&ROW()), "''", "''''") ' , ' & "''', , ' Final_Subject = ' , ' ''" & ' , ' SUBSTITUTE(INDIRECT("F"&ROW()), "''", "''''") ' , ' & "''' , ' WHERE 1=1' , ' AND Id = ' , ' ''" & ' , ' INDIRECT("A"&ROW()) ' , ' & "''' , '"' --/THEN , ', ' --ELSE , '"' , ' ' , '"' --/ELSE , ')' ) FROM __M_Documents_Digital_Categories V1 ORDER BY Final_Subject
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.
A value should be provided in Colum E and Colum F which correlate to the document type's Code and Name.
In order to merge records together, the value you provide MUST match your legacy system exactly. If there is no match, they will be created.
If you have any questions, please feel free to reach out.
---