Mass Update Purchase and Sales Units of Measure for Items
In order to mass update Units of Measure properly, there are a few essential steps that you need to complete in Excel to create the External IDs for Purchase UOM, Sales UOM, and Base UOM Record Id.
Creating an External ID
The Excel sheet should include the following basic columns:
Name
Base Unit of Measure
Purchase UOM
Sales UOM
![](../__attachments/2634121217/image-20230221-154849.png?inst-v=7859a023-5511-40be-b967-a1e2fed73946)
Add another column called Purchase Unit of Measure. It is important to name the columns exactly as shown in order to make mapping data in Data Import Wizard easier.
Use the CONCAT() formula in Excel to combine the Name and Purchase UOM together, separated by a semi-colon. This created the Purchase Unit of Measure External Id.
![](../__attachments/2634121217/image-20230221-155346.png?inst-v=7859a023-5511-40be-b967-a1e2fed73946)
Drag the bottom right corner of the green box down to replicate the formula for the entire column.
Delete Formula and Paste Values
It is not possible to import the CSV file into Data Import Wizard if the cells still have the formula attached to them.
To remove the formulas, first, highlight the column values, right-click what you highlighted, and click on Copy.
![](../__attachments/2634121217/image-20230221-160206.png?inst-v=7859a023-5511-40be-b967-a1e2fed73946)
Next, click on Paste Values.
![](../__attachments/2634121217/image-20230221-160311.png?inst-v=7859a023-5511-40be-b967-a1e2fed73946)
You may repeat the same steps to create Sales Unit of Measure and Base UOM Record Id. Remember to name the columns exactly as stated.
Save it as a CSV file.
Importing using Data Import Wizard
Open the App Launcher and search for Items. Click on Import.
![](../__attachments/2634121217/image-20230221-161312.png?inst-v=7859a023-5511-40be-b967-a1e2fed73946)
Under Custom Objects, click on Items → Update existing records.
Ensure that the following fields are mapped correctly:
Match by → Name
Base UOM Record Id → External ID
![](../__attachments/2634121217/image-20230221-163007.png?inst-v=7859a023-5511-40be-b967-a1e2fed73946)
![](../__attachments/2634121217/image-20230221-163100.png?inst-v=7859a023-5511-40be-b967-a1e2fed73946)
Upload your CSV file and click Next.
![](../__attachments/2634121217/image-20230221-163223.png?inst-v=7859a023-5511-40be-b967-a1e2fed73946)
Since the column names were labeled exactly as stated, the mapping should look like this. Base Unit of Measure, Purchase UOM, and Sales UOM can stay unmapped as they are not needed anymore. Click on Next.
![](../__attachments/2634121217/image-20230221-163441.png?inst-v=7859a023-5511-40be-b967-a1e2fed73946)
Click on Start Import.
![](../__attachments/2634121217/image-20230221-163529.png?inst-v=7859a023-5511-40be-b967-a1e2fed73946)