Follow

Message Content Placeholders - Event Periods, Event Period Attributes, and Event Period Values

The following placeholders may be used when working with segments of type Event Period, Event Period Attribute, and Event Period Value.

Event Period

An “Event Period” segment can be used when a message is triggered by an Event Period. The following placeholders are available for a “Event Period” segment type:

Event

  • [Event]
Event’s name
   

Period

  • [PeriodStart("HH:mm")]
Period’s start date formatted as per parameter.
  • [PeriodEnd("HH:mm")]
Period’s end date formatted as per parameter.
  • [Duration]
Period’s duration.
  • [Index("0000")]
Period’s index formatted as per parameter.
   

Relative– similar to above, but with an additional parameter that specifies a previous period index.

  • [PeriodStart(-1, "HH:mm")]
 
  • [PeriodEnd(-1, "HH:mm")]
 
  • [Duration(-1)]
 
  • [Index(-1, "0000")]
 
   

Event Period Attribute

An “Event Period Attribute” segment can be used when a message is triggered by an Event Period. The following placeholders are available for a “Event Period Attribute” segment type:

Event

  • [Event]
Event’s name
   

Attribute

  • [Attribute]
Attribute’s name (e.g. Product).
  • [AttributeValue]
Attribute value’s name (e.g. Orange, Apple).
   

Period

  • [PeriodStart("HH:mm")]
Period’s start date formatted as per parameter.
  • [PeriodEnd("HH:mm")]
Period’s end date formatted as per parameter.
  • [Duration]
Period’s duration.
  • [Index("0000")]
Period’s index formatted as per parameter.
   

Relative– similar to above, but with an additional parameter that specifies a previous period index.

  • [PeriodStart(-1, "HH:mm")]
 
  • [PeriodEnd(-1, "HH:mm")]
 
  • [Duration(-1)]
 
  • [Index(-1, "0000")]
 
   

Event Period Value

An “Event Period Value” segment can be used when a message is triggered by an Event Period. The following placeholders are available for a “Event Period Value” segment type:

Event

  • [Event]
Event’s name
   

Measure

  • [Measure]
Measure’s name.
  • [Description]
Measure’s description.
  • [UOM]
Measure’s unit of measure.
   

Value

  • [Value("0.00")]
Measures value for most recent period (if value is null, then use 0.00).
  • [Quality]
Measures quality for most recent period.
  • [Version]
Measures version for most recent period.
   

Attribute

  • [Attribute]
Attribute’s name (e.g. Product).
  • [AttributeValue]
Attribute value’s name (e.g. Orange, Apple).
   

Period

  • [PeriodStart("HH:mm")]
Period’s start date formatted as per parameter.
  • [PeriodEnd("HH:mm")]
Period’s end date formatted as per parameter.
  • [Duration]
Period’s duration.
  • [Index("0000")]
Period’s index formatted as per parameter.
   

Condition

  • [Positive("Great improvement!", "Keep it up!")]
If value is positive, then Flow will randomly select one of the text parameters (more text parameters can be used in a comma separated list).
  • [Negative("What happened?", "Ouch!")]
If value is negative, then Flow will randomly select one of the text parameters.
   

Relative– similar to above, but with an additional parameter that specifies a previous period index.

  • [PeriodStart(-1, "HH:mm")]
 
  • [PeriodEnd(-1, "HH:mm")]
 
  • [Duration(-1)]
 
  • [Index(-1, "0000")]
 
   
Was this article helpful?
0 out of 0 found this helpful
Have more questions? Submit a request

Comments