getIncident: Get an Incident

Description Usage Arguments Value

Description

This function returns a dataframe or json object of an Incident

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
getIncident(
  IncidentID,
  ActionIDRecommended = F,
  BuildingID = F,
  CreatedTime = F,
  DamageCost = F,
  DateBeforeLastEffectiveRun = F,
  DateTime = F,
  Description = F,
  DistrictID = F,
  EntityID = F,
  HasActions = F,
  HasActionsForOffenders = F,
  HasDrugs = F,
  HasOpenActions = F,
  HasOverdueActionDetails = F,
  HasWeapons = F,
  IncidentMNID = F,
  IncidentNumber = F,
  IncidentNumberValue = F,
  IsIncidentOrWarning = F,
  IsReadOnlyHistoricalRecord = F,
  IsReferralOrWarning = F,
  IsSuppressed = F,
  LocationID = F,
  ModifiedTime = F,
  NumberOfNonEnrolledOffenders = F,
  NumberOfNonEnrolledVictims = F,
  ReferredByFreeformName = F,
  ReferredByName = F,
  ReferredByNameID = F,
  ReferredByType = F,
  ReportedToLawEnforcement = F,
  RoomID = F,
  SchoolYearID = F,
  StateDIRSTimeMNID = F,
  Type = F,
  UserIDCreatedBy = F,
  UserIDModifiedBy = F,
  fieldPaths = NULL,
  entityId = 1,
  query = NULL,
  flatten = T,
  returnResponse = F
)

Arguments

IncidentID

The ID of the Incident to return.

fieldPaths

Fields from other objects with 'Many to One' or 'One to One' relationships to the given object listed as text. Run getSchemaForObjects('Incident') to get more field paths.

entityId

The id of the entity (school). Run listEntities for a list of entities. Defaults to 1 (district).

query

Queries to be added to the request. Ex. list(SchoolYearID = 1). Defaults to NULL.

flatten

Whether to flatten result into a dataframe or return the json object. Default is TRUE (flatten to dataframe).

returnResponse

Whether to return the server response instead of the results. Useful for debugging. Default is FALSE.

fieldNames

A TRUE or FALSE value determining whether or not to return the field for the given Incident. Defaults to FALSE for all return fields which, for convenience, returns all fields for the Incident.

Value

A dataframe or of Incident Skyward's Knowledge Hub


samterfa/rqmlativ documentation built on April 2, 2021, 12:03 p.m.