I am trying to automate a CSV import for sales orders. I do use two of the linked files ("Items" and "Items - Shipping Address"). However, I cannot discover how to refer to these in my script. I get the error "The file cannot be linked to the reference [Sales Order - Items] - such a sublist or subrecord does not exist" for any name I give the file. I've tried "Sales Order - Items", "Items", "itemList", 2, and other variations. Same error every time.
I see plenty of references to how to load and reference the primary file and the linkedfiles, but I can find no documentation on how to know what the linked file reference is actually named.
What are these called in a script?
This doesn't work, I believe it is only "Sales Order - Items" that is wrong
scriptTask.linkedFiles = {'Sales Order - Items': linkedFileItems};
From the CSV import file list: