Import file fields¶
The fields each type takes in an import file. Each section starts with a header row you can copy into the first line of a .csv file; leave out the columns you don't need.
Field names must match exactly, upper and lower case included. Other fields are left out before the file goes to the server.
Key field: the field that matches a row in the file to an existing record. It's Name for every type except Units (Serial) and Part inventory (always new records). The key field can't be changed by an update.
Fields ending in Viz link another record by its name, which must match a record already in AyaNova. That's why the order of imports matters.
Contracts: where a type takes ContractViz, give ContractExpires too. Without it the contract is set to have expired a minute before the import, so it doesn't apply until you set a date.
Customers¶
Required: Name.
Name,Active,Notes,Wiki,Tags,WebAddress,AlertNotes,BillHeadOffice,HeadOfficeViz,TechNotes,AccountNumber,ContractViz,ContractExpires,Phone1,Phone2,Phone3,Phone4,Phone5,EmailAddress,PostAddress,PostCity,PostRegion,PostCountry,PostCode,Address,City,Region,Country,AddressPostal,Latitude,Longitude
HeadOfficeViz: an existing Head office. NeedsBillHeadOfficeset totrue, andBillHeadOfficetrue needs aHeadOfficeViz.
A worked example with three customers is on the Import page.
Head offices¶
Required: Name.
Name,Active,Notes,Wiki,Tags,WebAddress,TechNotes,AccountNumber,ContractViz,ContractExpires,Phone1,Phone2,Phone3,Phone4,Phone5,EmailAddress,PostAddress,PostCity,PostRegion,PostCountry,PostCode,Address,City,Region,Country,AddressPostal,Latitude,Longitude
Parts¶
Required: Name.
Name,Active,Description,Notes,Wiki,Tags,ManufacturerViz,ManufacturerNumber,WholeSalerViz,WholeSalerNumber,AlternativeWholeSalerViz,AlternativeWholeSalerNumber,Cost,Retail,UnitOfMeasure,UPC,PartSerialsViz
ManufacturerViz,WholeSalerViz,AlternativeWholeSalerViz: existing Vendors.PartSerialsViz: serial numbers separated by commas, for example"387992910, 387992911". An update that includes this field replaces all the part's serial numbers.
Part assemblies¶
Required: Name.
Items holds the parts and their quantities. In a .csv file: in double quotes, pairs separated by commas, each pair the name of an existing part, a |, and the quantity:
In a .json file Items is a list:
Part inventory¶
Opening stock or adjustments. Import only: each row is a new inventory transaction, so these can't be updated.
Required: PartViz (an existing Part), PartWarehouseViz (an existing Part warehouse) and Quantity. An empty Description gets the import tag.
Part warehouses¶
Required: Name.
Projects¶
Required: Name.
ProjectOverseerViz: an existing User's name.
Service rates¶
Required: Name.
Task groups¶
Required: Name.
Items holds the tasks. In a .csv file: in double quotes, separated by commas, with no comma or quotation mark inside a task. They're numbered in the order given:
Name,Active,Notes,Items
Clean and inspect,true,,"Open unit, Inspect seals, Close unit, Confirm power up"
In a .json file Items is a list:
Travel rates¶
Required: Name.
Units¶
Required: Serial (the key field) and CustomerViz.
Serial,Active,Notes,Wiki,Tags,CustomerViz,ParentUnitViz,UnitModelNameViz,UnitHasOwnAddress,BoughtHere,PurchasedFromVendorViz,Receipt,PurchasedDate,Description,ReplacedByUnitViz,OverrideModelWarranty,WarrantyLength,WarrantyTerms,ContractViz,ContractExpires,Metered,LifeTimeWarranty,Text1,Text2,Text3,Text4,Address,City,Region,Country,AddressPostal,Latitude,Longitude
CustomerViz: the existing Customer that owns the unit.ParentUnitViz,ReplacedByUnitViz: the serial of an existing Unit.UnitModelNameViz: an existing Unit model.PurchasedFromVendorViz: an existing Vendor.
Unit models¶
Required: Name.
Name,Active,Notes,Wiki,Tags,VendorViz,UPC,LifeTimeWarranty,IntroducedDate,Discontinued,DiscontinuedDate,WarrantyLength,WarrantyTerms
VendorViz: an existing Vendor.
Vendors¶
Required: Name.