Skip to main content

Introduction

Protrak provides a set of standard attributes for all Types and allows administrators to define custom attributes, which can be associated with both Types and Relation Types.

Standard Attributes

The following standard attributes are available:

  • Name
  • Description
  • TrackingId (when Tracking Required is enabled on the Type)
  • TrackingInfo (when Tracking Required is enabled on the Type)
  • Geolocation (when Geolocation Required is enabled on the Type)
  • State (the lifecycle state)
  • Creator (the user who created the instance)
  • Modifier (the user who last modified the instance)
  • Created (timestamp of instance creation)
  • Modified (timestamp of last modification)
  • VersionNumber (when versioning is enabled for the instance)
  • QRCode

Working with Different Attribute Types

Protrak supports various data types for custom attributes. This guide explains how to work with attribute values in your code.

The Prorigo.Protrak.API.Contracts.Attribute class is used to represent attribute values in the Protrak API.

Attribute Contract

PropertyData TypeDescription
NamestringThe attribute name defined in the schema. Unique for each attribute. May differ from the display name.
TypeProrigo.Protrak.API.Contracts.Enum.AttributeTypeEnum: Text, Numeric, Date, Currency, Picklist, DateTime, RichText, Expression, Boolean, Attachment, User, Reference, Lifecycle
CanUpdateboolIndicates if the attribute value can be updated for the given instance, based on permissions and lifecycle state.
TextValuestringValue for Text attributes.
DateValueDateTime?Value for Date attributes.
NumericValuedouble?Value for Numeric and Currency attributes.
BooleanValuebool?Value for Boolean attributes.
ArrayValuestring[]Value for Picklist attributes.
FileValueProrigo.Protrak.API.Contracts.FileValueValue for Attachment attributes. Contains FileId and FileName.
UserValuesProrigo.Protrak.API.Contracts.UserValue[]Value for User attributes. Array of UserId, UserName, UserEmail, UserThumbnailUrl, Phone.
ReferenceValuesReferenceValue[]Value for Reference attributes. Array of related instance Id and Name.
OptionValuesProrigo.Protrak.API.Contracts.Enum.OptionValuesEnum indicating if the option value is StaticList, Roles, Types or Templates.
TemplateTargetstringIf OptionValues is set to Templates, then TemplateTarget is used to filter available templates based on the specified template target.

Attribute Type Capabilities

Attribute TypeSortableDefault Sort OrderFilterableConditions
TextyesAscendingyesContains, Not Contains, Equals, Not Equals, In, Is Empty, Is Not Empty, Starts With, Ends With
NumericyesAscendingyesEquals, Greater Than, Greater Than Or Equal, Less Than, Less Than Or Equal, Between, Is Empty, Is Not Empty, In
DateyesDescendingyesEquals, Greater Than, Greater Than Or Equal, Less Than, Less Than Or Equal, Between, Is Empty, Is Not Empty
CurrencyyesAscendingyesEquals, Greater Than, Greater Than Or Equal, Less Than, Less Than Or Equal, Between, Is Empty, Is Not Empty
PicklistyesAscendingyesContains, Not Contains, Equals, Not Equals, Is Empty, Is Not Empty
Picklist - MultiselectnoyesContains, Not Contains, Equals, Not Equals, Is Empty, Is Not Empty
DateTimeyesDescendingyesEquals, Greater Than, Greater Than Or Equal, Less Than, Less Than Or Equal, Between, Is Empty, Is Not Empty
RichTextyesAscendingyesContains, Is Empty, Is Not Empty
Expressionnono
BooleanyesAscendingyesEquals
Attachmentnono
UseryesAscendingyesContextUser, Contains, Not Contains, Equals, Not Equals, Is Empty, Is Not Empty
User - MultiselectnoyesContextUser, Contains, Not Contains, Equals, Not Equals, Is Empty, Is Not Empty
ReferencenoyesContains, Not Contains, Equals, Not Equals, In, Is Empty, Is Not Empty, Starts With, Ends With
NameyesAscendingyesContains, Not Contains, Equals, Not Equals, In, Is Empty, Is Not Empty, Starts With, Ends With
TrackingIdyesAscendingyesContains, Not Contains, Equals, Not Equals, In, Is Empty, Is Not Empty, Starts With, Ends With
TrackingInfoyesAscendingyesContains, Not Contains, Equals, Not Equals, In, Is Empty, Is Not Empty, Starts With, Ends With
Geolocationnono
DescriptionyesAscendingyesContains, Not Contains, Equals, Not Equals, In, Is Empty, Is Not Empty
StateyesAscendingyes
Actionsnono
CreatoryesAscendingyesContextUser, Contains, Not Contains, Equals, Not Equals, Is Empty, Is Not Empty
ModifieryesAscendingyesContextUser, Contains, Not Contains, Equals, Not Equals, Is Empty, Is Not Empty
CreatedyesDescendingyesEquals, Greater Than, Greater Than Or Equal, Less Than, Less Than Or Equal, Between, Is Empty, Is Not Empty
ModifiedyesDescendingyesEquals, Greater Than, Greater Than Or Equal, Less Than, Less Than Or Equal, Between, Is Empty, Is Not Empty
TypeNamenono
VersionNumbernono
QRCodenono

Child Pages