Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

OMF with PI Web API

Example properties keyword for type messages

  • Last UpdatedSep 04, 2025
  • 1 minute read

The properties keyword in a type message creates attribute templates on the element template. Each property becomes a separate attribute template. The properties keyword has its own keywords, which are detailed in Properties keywords reference.

The following is an example value for the properties keyword:


"properties": {

"FactoryId": {

"type": "string",
"isindex": true,
"name": "Factory Index"

},

"FactoryName": {

"type": "string",
"isname": true,
"name": "Factory Name"

},

"Address": {

"type": "string"

},

"Contact": {

"type": "string"

},

"WidgetLevel": {

"type": "Number",
"format": "float64",
"name": "Widget Level",
"description": "A widget is a very special thing.",
"uom": "count",
"minimum": 0,
"maximum": 64,
"interpolation": "discrete"

},

"WidgetColor": {

"reftypeid": "WidgetColorEnum",
"name": "Widget Color",

}

}

These properties create the attribute templates shown in the image below:

TitleResults for “How to create a CRG?”Also Available in