Skip to content

Latest commit

 

History

History
137 lines (74 loc) · 2.84 KB

segmentdefinition-expression.schema.md

File metadata and controls

137 lines (74 loc) · 2.84 KB

Segment expression Schema

https://ns.adobe.com/xdm/context/segmentdefinition-expression

This mixin helps capture the qualifying expression for a segment.

Abstract Extensible Status Identifiable Custom Properties Additional Properties Defined In
Can be instantiated Yes Experimental No Forbidden Permitted context/segmentdefinition-expression.schema.json

Schema Hierarchy

  • Segment expression https://ns.adobe.com/xdm/context/segmentdefinition-expression

Segment expression Example

{
  "xdm:segmentExpression": {
    "xdm:expressionType": "PQL",
    "xdm:mimeType": "pql/text",
    "xdm:value": "personalEmail.address.endsWith(\"testxdmmail.com\", false)"
  }
}

Segment expression Properties

Property Type Required Defined by
xdm:segmentExpression object Optional Segment expression (this schema)
* any Additional this schema allows additional properties

xdm:segmentExpression

Segment expression

xdm:segmentExpression

  • is optional
  • type: object
  • defined in this schema

xdm:segmentExpression Type

object with following properties:

Property Type Required
xdm:expressionType string Optional
xdm:mimeType string Optional
xdm:value string Optional

xdm:expressionType

Type

Type of expression, for example, PQL, Query Service, or Adobe Audience Manager.

xdm:expressionType

  • is optional
  • type: string
xdm:expressionType Type

string

xdm:expressionType Known Values
Value Description
0 PQL
1 AAM
2 QUERYSERVICE

xdm:mimeType

Expression mime type

Mime type of the expression. For example, pql/text or application/sql.

xdm:mimeType

  • is optional
  • type: string
xdm:mimeType Type

string

All instances must conform to this regular expression (test examples here):

\w+/[-.\w]+(?:\+[-.\w]+)?

xdm:value

Value

Actual expression string. The syntax of expression will depend upon specified mime type.

xdm:value

  • is optional
  • type: string
xdm:value Type

string