To create import scripts:
On the Setup tab, under Scripts, select Script Editor.
On the Script Editor screen, click New.
From Script Type, select Import.
In File Name, enter a name for the script.
Click OK.
Write the code for the custom script in the Script Editor.
Click Save.