Skip to content

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. Needs BillHeadOffice set to true, and BillHeadOffice true needs a HeadOfficeViz.

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.

Name,Active,Notes,Wiki,Tags,Items

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:

Name,Active,Notes,Wiki,Tags,Items
Primary 7242,true,,,"zone3","097091|1,874579|3,983612|15"

In a .json file Items is a list:

"Items": [
    { "PartNameViz": "097091", "Quantity": 1 },
    { "PartNameViz": "874579", "Quantity": 3 }
]

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.

Description,PartViz,PartWarehouseViz,Quantity
Opening stock,"048902",Default,12

Part warehouses

Required: Name.

Name,Active,Notes,Wiki,Tags

Projects

Required: Name.

Name,Active,Notes,Wiki,Tags,DateStarted,DateCompleted,ProjectOverseerViz,AccountNumber
  • ProjectOverseerViz: an existing User's name.

Service rates

Required: Name.

Name,Active,Notes,Wiki,Tags,AccountNumber,Cost,Charge,Unit,ContractOnly

Task groups

Required: Name.

Name,Active,Notes,Items

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:

"Items": [
    { "Sequence": 1, "Task": "Open unit" },
    { "Sequence": 2, "Task": "Inspect seals" }
]

Travel rates

Required: Name.

Name,Active,Notes,Wiki,Tags,AccountNumber,Cost,Charge,Unit,ContractOnly

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.

Name,Active,Notes,Wiki,Tags,Contact,ContactNotes,AlertNotes,WebAddress,AccountNumber,Phone1,Phone2,Phone3,Phone4,Phone5,EmailAddress,PostAddress,PostCity,PostRegion,PostCountry,PostCode,Address,City,Region,Country,AddressPostal,Latitude,Longitude