Outbound Template Macros
- Topics:
- Outbound Data Transfers
Lists the macros you can use to create outbound templates. These include file name macros, header macros, and content macros.
File Name and File Header Macros
The table lists and describes the macros you can use in the file name and to define header fields. For code samples, see Outbound Macro Examples.
Macro | Description |
---|---|
ASCII_SOH | A non-printing ASCII character. It indicates the start of a row or a section of content. It can also be used to separate data columns in a file. |
DPID | Data provider ID. |
MASTER_DPID | User ID Key Data Provider ID. |
NEW_LINE | Allows the creation of multi-line headers for outbound orders. |
ORDER_ID | Order / destination ID. |
PID_ALIAS |
An alias for an order / destination ID. The alias is set in the admin UI. |
SPLITNUM |
Indicates the splitting of outbound files into multiple parts. Replace the SPLITNUM section in the file name with the part number preceded by zeros, ensuring a minimum of three characters for the SPLITNUM section. The SPLITNUM macro does not need to be surrounded by <> characters. Example: s3_123456_9999_full_1566906141001.csv s3_123456_9999_full_1566906141002.csv s3_123456_9999_full_1566906141003.csv The last three digits (001,002,003) in the examples above are the SPLITNUM identifiers. |
SYNC_MODE |
Indicates synchronization type and includes:
|
SYNC_TYPE |
Indicates data transfer method and includes:
|
TAB | Used as a separator, this macro inserts a tab between fields. |
TIMESTAMP |
A 10-digit, UTC, Unix timestamp. It can also be formatted as |
Content Macros
Macros used to format the contents of a data file. For code samples, see Outbound Macro Examples.
Macro | Description |
---|---|
CLOSE_CURLY_BRACKET | Inserts a close curly bracket } character. |
DP_UUID |
Data Provider Unique User Identifier . This is the ID for the data partner you send data to in an outbound file. |
DP_UUID_LIST | Returns a list that contains multiple IDs for a data partner. This is useful if you have a large organization with multiple subdivisions or other organizational groups you're allowed to share data with. This macro returns a list of the IDs for those subordinate groups. |
DPID | Data provider ID. |
DPUUIDS |
The output of this macro maps the data provider ID (DPID) to related unique user IDs (DPUUID). This macro must have a formatting string to control its output. Sample output would look similar to the following:
The |
if(SEGMENT_LIST && REMOVED_SEGMENT_LIST)endif | This combination of macros creates a conditional statement that lists the segments users belong to and have been removed from. It returns an empty string if both conditions are not met or there's no data. |
MCID | Adobe Experience Cloud ID. |
OPEN_CURLY_BRACKET | Inserts an open curly bracket { character. |
OPT_OUT | Deprecated. Do not use. |
ORDER_ID | Order or destination ID. |
OUTPUT_ATTRIBUTE_TYPE | Deprecated. Do not use. |
OUTPUT_ATTRIBUTE_VALUE | Returns 1 as a static, hardcoded value. |
PID | Partner ID. |
PIDALIAS |
An alias for an order / destination ID. The alias is set in the admin UI. |
REMOVED_SEGMENT_LIST | Returns a list of segments, if any, that have been removed. |
SEGMENT_LIST |
Returns a list of segments in a list. Accepts the following optional arguments:
Put these variables in curly brackets after the macro. For example, this code separates results with a pipe "|" character: |
SET_ATTRIBUTES | Returns 1 , as a static, hardcoded value. |
SYNC_MODE |
Indicates synchronization type and includes:
|
SYNC_TYPE |
Indicates data transfer method and includes:
|
TAB | Used as a separator, this macro inserts a tab between fields. |
TRAIT_LIST |
Returns a list of traits. Accepts the following optional arguments:
Put these variables in curly brackets after the macro. For example, this code separates the results with a pipe "|" character: |
UUID | Audience Manager user ID. |