.Locations Imports v2021.3
- 1 Capability
- 1.1 Matches On
- 2 Fields
- 2.1 Full Location
- 2.2 Parent Location Type
- 2.3 Location Type
- 2.4 New Name
- 2.5 Status
- 2.6 Latitude
- 2.7 Longitude
- 2.8 Warehouse Flag
- 2.9 Report 911 Flag
- 2.10 Default Warehouse
- 2.11 Default Warehouse Type
- 2.12 Default Return Warehouse
- 2.13 Default Return Warehouse Type
- 3 Child Records
- 3.1 Servicing Equipment
- 3.1.1 Equipment ID
- 3.1.2 Equipment Location
- 3.1.3 Equipment Location Type
- 3.1.4 Equipment Service Catalog
- 3.2 Building Address
- 3.2.1 Building ID
- 3.2.2 Community Name
- 3.2.3 Street Address
- 3.2.4 Address2
- 3.2.5 Country
- 3.2.6 City
- 3.2.7 State
- 3.2.8 Zip Code
- 3.2.9 House Number
- 3.2.10 House Number Suffix
- 3.2.11 Pre Direction
- 3.2.12 Street
- 3.2.13 Street Suffix
- 3.2.14 Post Direction
- 3.1 Servicing Equipment
- 4 Flags / Conditional Logic
- 5 Errors
- 6 UDF Associations
Capability
The Locations Import allows the User to INSERT new Locations into Location Catalogs or UPDATE existing ones if a match is found.
The Import will notice if any 'Location' already exists in a 'Hidden' state. The process will locate that hidden Location record and update it to 'Not Hidden'. It will also blank out any old information on the Location from before it was hidden, so it will seem like a fresh new record. The remainder if the process will treat the record like a new record, and fill in values as normal. The 'Imported Records' Grid will display a line showing a new Location record added.
A consequence of this is that if there were any old 'Service Orders' that referenced this Location, then any details of the location that were displayed on the Service Order will now show the new Location values instead of the original values. This problem will eventually be solved by "Service Order Archiving", when the ability to hide Locations will be removed.
Matches On
The Import attempts to match the Full Location.
Parent Locations MUST exist before attempting to INSERT child Locations or the Import errors.
For example, if the Full Location 'X > Y > Z' is desired, the User must first Import 'X' and 'X > Y' before the Import can INSERT 'X > Y > Z'.
Fields
Full Location
Required
Datatype is Hierarchical String.
This field CANNOT UPDATE.
If an existing Full Location field is not found or the Location string exists with multiple Types, the Import generates an error.
Parent Location Type
Conditionally Required if the provided Parent Location exists with multiple Types.
Datatype is String.
Permitted values are from the LOCATION_TYPE List Values.
This field is used for the Parent Location lookup if provided.
The Parent Location is all of the parts of the Full Location string except for the last part.
Location Type
Datatype is String.
Conditionally Required if the Import is attempting to INSERT the Location.
Permitted values must be one of List Values of type LOCATION_TYPE: Site, Building, Floor, Room, Cube, Truck, Closet, Rack, Elevation, or Manhole.
User entered values to the LOCATION_TYPE list may also be used.
If a Location Type is provided, the Import uses that Location Type to see if an existing record exists for UPDATE.
If the Location Type is not in the List Values, the Import errors.
If a record exists with the same Name but a different Location Type, the Import process does INSERT a new record.
If Location Type is not provided, the record is assumed to be an UPDATE of an existing Location.
New Name
Datatype is String
This is used to rename an existing Location. Only the Name should be provided, not the full hierarchical path.
If a New Name is provided, then the import is assumed to be updating an existing record. If the Location provided in the Full Location field does not exist, an error will occur instead of creating a new Location.
Status
Datatype is Boolean.
Defaults to Inactive [0].
Permitted Values are 1, True, Yes, Active and will set the Flag to True [1].
All other values enter as False [0].
Latitude
Datatype should be Number.
Valid Range is -90.00000 to 90.00000.
If the value has more than 5 digits after the decimal it will be truncated.
Longitude
Datatype should be Number.
Valid Range is -180.00000 to 180.00000.
If the value has more than 5 digits after the decimal it will be truncated.
Warehouse Flag
Datatype is Boolean.
Defaults to False [0].
Permitted Values are 1, True, or Yes and will set the Flag to True [1].
All other values enter as False [0].
Report 911 Flag
Datatype is Boolean.
Defaults to False [0].
Permitted Values are 1, True, or Yes set the Flag to True [1].
All other values enter as False [0].
If the Location Type is Building, the Report 911 flag must be either True or False.
If the Location Type is not a Building Type, the Report 911 flag is not used, and any provided value is ignored by the Import.
Default Warehouse
Datatype is Hierarchical String.
Sets the Default Warehouse for the Location to use.
Default Warehouse Type
Conditionally Required if the provided Default Warehouse Name exists with multiple Types.
Datatype is String.
Permitted values are from the LOCATION_TYPE List Values.
This field is used for the Default Warehouse lookup if provided.
Default Return Warehouse
Datatype is Hierarchical String.
Default value is blank.