Alias in enrichment activities | Community
Skip to main content
This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by DavidKangni

Hi @kristenco4 ,

 

It's not required to start with @. It's just a best practice in naming convention.

 

Thanks,

David

2 replies

DavidKangni
Community Advisor
DavidKangniCommunity AdvisorAccepted solution
Community Advisor
June 21, 2024

Hi @kristenco4 ,

 

It's not required to start with @. It's just a best practice in naming convention.

 

Thanks,

David

David Kangni
Level 2
June 21, 2024

Thank you for the confirmation!

vraghav
Adobe Employee
Adobe Employee
June 24, 2024

@kristenco4  Whether or not you "@" symbol at the beginning lies in the way you wish the data in dowstream

It is all present as an XML structure.

If you use "@" the column is added to output as an Attribute

If you remove "@" that column appears in outbound transition as an XML element.

Please refer to this link for more differentiation 

XML Element: https://www.w3schools.com/xml/xml_elements.asp

XML Attribute: https://www.w3schools.com/xml/xml_attributes.asp 

Let us assume you have a new targetData column with value as "123" and the alias you have used is "@kristen". Also assuming your targeting dimension is nms:recipient

Data in your outbound transition is accessible in available in this form

 

<recipient firstName="myFirstName" lastName="myLastName" kristen="123"> </recipient>

 

 

Now if in the same example you were to remove the "@" symbol, same data will appear in this format

 

<recipient firstName="myFirstName" lastName="myLastName"> <kristen>123</kristen> </recipient>

 

There is no right or wrong way. It all depends on how the downstream activities are going to consume it. Like personalizing inside a delivery or making this available in seed addresses.

Alias is to be used whenever using the value anywhere

If you do not give an alias, product automatically deduces the alias value based on source column used.

If you have used a formula, it will create an alias like exprRandomNumber which is not user-friendly.