This commit is contained in:
2022-03-24 21:21:45 +00:00
parent b9c2ce9906
commit a978ff9829
2 changed files with 13 additions and 6 deletions

View File

@@ -2,16 +2,21 @@
![THIS PAGE UNDER CONSTRUCTION](img/underconstruction.svg)
Notes for docs:
Import new records - if checked will import any records that are not found to match by name
Update matching records - if checked will overwrite any existing records that match by name with any values in the import file, if you do not want a particular field updated, do not include it in the import file
all dates and times assumed to be in UTC
csv and json supported
csv must have first row headers which must match expected field names in order to map
Records are matched by primary identifier, usually "Name" field and must be unique
AyaNova 8's native data interchange format is JSON as JSON supports hiearchical structured data of the type AyaNova uses for nearly all it's object types.
Field names must be the expected ones this means csv column headers as well as json property names, unrecognized fields will be thrown out and ignored
For this reason, import ONLY supports JSON format files. Importing CSV files is *not* supported.
Each type of supported importable object's allowed fields and types is documented below
A 3rd party tool can be used to convert CSV files to JSON if necessary.
https://duckduckgo.com/?t=ffab&q=csv+to+json&ia=web
CSV will be converted to JSON before importing, if there are any errors in the CSV the import will not proceed and the results of the CSV parser's errors found will be displayed on the import page
Errors from the parser are in English language only
We recommend exporting some records of the object desired to import so that you can see the exact format used and replicate it for import

View File

@@ -67,6 +67,8 @@ namespace AyaNova.Api.Controllers
{
public AyaType AType { get; set; }
public JArray Data { get; set; }
public bool DoImport {get;set;}
public bool DoUpdate {get;set;}
}