RegulatoryCodeViolation
Represents the transactional violation data that has been identified during an inspection. This entity ties the inspection question that is violated, violation
reason and the regulatory code details. This object is available in API version 49.0 and later.
Supported Calls
create(), delete(), describeLayout(), describeSObjects(), getDeleted(), getUpdated(), query(), retrieve(), undelete(), update(), upsert(), search()
Fields
ComplianceDueDate
- Type: dateTime
- Properties: Create, Filter, Nillable, Sort, Update
- Description: Due date for regulatory code compliance.
CorrectiveActionDescription
- Type: textarea
- Properties: Create, Filter, Nillable, Sort, Update
- Description: Description of corrective action.
DateCreated
- Type: dateTime
- Properties: Create, Filter, Sort, Update
- Description: Date when the violation was created.
DateResolved
- Type: dateTime
- Properties: Create, Filter, Nillable, Sort, Update
- Description: Date when the violation was resolved.
DaysOpen
- Type: int
- Properties: Filter, Group, Nillable, Sort
- Description: Number of days the violation was unresolved.
Description
- Type: string
- Properties: Create, Filter, Group, Nillable, Sort, Update
- Description: Description of the violation.
InspectionAssmntIndId
- Type: string
- Properties: Create, Filter, Group, Nillable, Sort, Update
- Description: Id of the inspection assessment indicator associated with the regulatory code violation.
InspectionId
- Type: string
- Properties: Create, Filter, Group, Nillable, Sort, Update
- Description: Id of the inspection associated in which the violation was recorded.
LastReferencedDate
- Type: dateTime
- Properties: Filter, Nillable, Sort
- Description: The most recent date on which a user referenced this record.
LastViewedDate
- Type: dateTime
- Properties: Filter, Nillable, Sort
- Description: The most recent date on which a user viewed this record.
Name
- Type: string
- Properties: Autonumber, Defaulted on create, Filter, idLookup, Sort
- Description: Name of the violation
OwnerId
- Type: string
- Properties: Create, Defaulted on create, Filter, Group, Sort, Update
- Description: The ID of the user who owns this record.
Priority
- Type: picklist
- Properties: Create, Filter, Group, Nillable, Sort, Update
- Description: Priority of the violation.
-
Possible values:
- Critical
- High
- Low
- Medium
RecurrenceCount
- Type: int
- Properties: Create, Filter, Group, Sort, Update
- Description: Number of times the violation has recurred.
RegulatoryCodeId
- Type: reference
- Properties: Create, Filter, Group, Nillable, Sort, Update
- Description: ID of the regulation code.
ResolutionNotes
- Type: textarea
- Properties: Create, Filter, Nillable, Sort, Update
- Description: Notes related to violation resolution.
Status
- Type: picklist
- Properties: Create, Filter, Group, Nillable, Sort, Update
- Description: Status of the violation.
-
Possible values:
- Open
- Resolved
ViolationTypeId
- Type: reference
- Properties: Create, Filter, Group, Sort
- Description: ID of the violation type.
Associated Objects
This object has the following associated objects. Unless noted, they are available in the same API version as this object.
- RegulatoryCodeViolationChangeEvent (API Version 58.0)
- Change events are available for the object.
- RegulatoryCodeViolationFeed
- Feed tracking is available for the object.
- RegulatoryCodeViolationHistory
- History is available for the object.
- RegulatoryCodeViolationOwnerSharingRule
- Sharing rules are available for the object.
- RegulatoryCodeViolationShare
- Sharing is available for the object.