Skip to content

Latest commit

 

History

History
137 lines (74 loc) · 2.98 KB

segmentdefinition-expression.schema.md

File metadata and controls

137 lines (74 loc) · 2.98 KB

Segment Expression Details Schema

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

Segment expression data such as expression type, mime type, and expression value.

Abstract Extensible Status Identifiable Custom Properties Additional Properties Defined In
Can be instantiated Yes Stable No Forbidden Permitted fieldgroups/segment-definition/segmentdefinition-expression.schema.json

Schema Hierarchy

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

Segment Expression Details Example

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

Segment Expression Details Properties

Property Type Required Defined by
xdm:segmentExpression object Optional Segment Expression Details (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