Optional
adminOptional
attachmentsInspection Administration methods
Inspection Costing methods
Get the records on the basis of inspectionId, only populates InspectionId, InspTemplateName, and Location properties
Returns Promise that represents a collection of the matching (limited) inspection objects
???, see instance docs: /{subdirectory}/apidocs/#/service-info/Ams/Inspection
Get Inspection Employee lists. Abstraction done here, though only one employee list field, AFAIK.
Returns Promise that represents a collection of employees. See: /{subdirectory}/apidocs/#/data-type-info;dataType=EmployeeNameId
Which list (endpoint) to get. Includes only SubmitTos.
Whether to include inactive employees in the returned list. Defaults to false.
Optional
domainIds: number[]Filter to certain domains within the Cityworks instance.
Get inspection submit to list
Returns object that represents a collection of all possible employees for an Inspection's SubmitTo
Optional
includeInactiveEmployees: boolean = falsewhether to include inactive employees in the return. Defaults to false.
Optional
domainIds: number[]which domains to include in the return, default to All domains
Search for inspections
Returns Promise that represents an array of the matching inspection IDs
The search information to retrieve matched inspections, see instance docs: /{subdirectory}/apidocs/#/service-info/Ams/Inspection
Get the questions and answers for inspection template(s)
Returns object that represents an array which contains a list of InspQuestionPanel for the template
An array of the IDs to reopen the matched inspections
Get inspection template question conditions
Returns object that represents an array which contains a dictionary of InspQuestion IDs to configs
An array of template IDs to get the matched inspection template Question conditions for
Get inspection templates
Returns Promise that represents a collection of all Inspections matching the provided parameters
Optional
entityTypes: string[]The Entity Type(s) to return potential inspections for
Optional
canCreate: booleanIf true, only return templates the user can create, ignored if false or null, default is true
Optional
options: { An object which can include: [IncludeInactive]: boolean, MaximumDateModified: Date, MinimumDateModified: Date, TemplateIds: Array
Optional
IncludeOptional
MaximumOptional
MinimumOptional
TemplateGet a list of templates by IDs
Returns object that represents an object describing the inspection
Optional
options: { An object which can include: [IncludeInactive]: boolean, MaximumDateModified: Date, MinimumDateModified: Date, TemplateIds: Array
Optional
MaximumOptional
MinimumCancel inspections
Returns object that represents a collection of inspections
An array of the IDs to cancel the matched inspections
Optional
cancelReason: stringA reason for cancelling the inspection(s)
Optional
dateCancelled: DateThe date/time that it should be indicated the inspection was cancelled
Add an entity to an existing inspection This method requires an Entity/Asset to be specified. You can either specify the Entity Type and its UID or a WorkOrderEntityBase Object.
Returns object that represents an object which describes an Inspection Entity
Either of two attribute combinations are valid: entityType & entityUid OR Entity as a fully-inflated WorkOrderEntity (WorkOrderEntityBase) object.
Optional
Entity?: ObjectOptional
EntityOptional
EntityAn Inspection ID to attach the entity/asset to.
Provide a boolean to whether the inspection's X/Y coordinates should be updated. Default is true.
Add Facility_Id for the Facility Identifier and Level_id for the Facility Level Identifier. Defaults to empty so that no facility is specified.
Optional
Facility_Optional
Level_Create new inspection
Returns Promise that represents an object describing the newly-created inspection
See /{subdirectory}/apidocs/#/data-type-infodataType=InspectionBase on your Cityworks instance
Create inspections from an array of entities
Returns Promise that represents a collection of objects describing the newly-created inspections
See /{subdirectory}/apidocs/#/data-type-infodataType=InspectionBase on your Cityworks instance
Create an inspection from a parent inspection (TODO: what parent!?)
Returns object that represents an object describing the newly-created inspection
See /{subdirectory}/apidocs/#/data-type-infodataType=InspectionBase on your Cityworks instance
Create an inspection from a service request
Returns object that represents an object describing the newly-created inspection
See /{subdirectory}/apidocs/#/data-type-infodataType=InspectionBase on your Cityworks instance
Create an inspection from a WorkOrder
Returns object that represents an object describing the newly-created inspection
See /{subdirectory}/apidocs/#/data-type-infodataType=InspectionBase on your Cityworks instance
Create a search definition. Save the definition by setting SaveDefinition = true and supplying a SearchName.
Returns Promise that represents a collection of Cityworks Metadata Objects
Search data variables. See /{subdirectory}/apidocs/#/service-info/Ams/Inspection
Optional
searchName: stringWhat to name your search (if it should be saved)
Optional
sharedWithin: numberWhat group or domain to share the search to.
Whether or not to save the search definition. Defaults to true when a search name is specified.
Whether or not to enable EURL for the saved search. Defaults to true.
Move inspection by InspectionId. Must provide well known id (WKID) or well known text (WKT)
Returns Promise that represents an object describing the updated GISPoint
The ID of the inspection that should be moved
The X coordinate for the move
The Y coordinate for the move
Should include at least WKT or WKID attribute. Can also include VcsWKID attribute.
Optional
VcsWKID?: stringOptional
WKID?: stringOptional
WKT?: stringOptional
z: numberthe optional Z coordinate for the move
Update Map Layer Fields
Returns Promise that represents a ...
The inspection ID to get the map layer fields for.
Optional
x: numberOptional
y: numberOptional
domainId: numberDomain ID
Optional
z: numberOptional Z coordinate
Get SubmitTo list
Returns Promise that represents a collection of employees. See: /{subdirectory}/apidocs/#/data-type-info;dataType=EmployeeNameId
Whether to include inactive employees in the returned list. Defaults to false.
Optional
domainIds: number[]Filter to certain domains within the Cityworks instance.
Inspection Administration methods