Expand my Community achievements bar.

Join us on September 25th for a must-attend webinar featuring Adobe Experience Maker winner Anish Raul. Discover how leading enterprises are adopting AI into their workflows securely, responsibly, and at scale.

What should be passed from data element to XDM Object of "value" and "id" property combo, when no values need to be passed?

Avatar

Level 4

Hi,

In the XDM schema there are commonly objects that contain a value/id combination, where "value" is a number which acts as a counter and "id" is a string which contains the actual value or identifier being passed. I'm using a data element to populate both these fields. The thing I'm trying to figure out is what values to pass when I don't need to populate these properties, under specific conditions. If I'm not supposed to populate the fields, what do I return for the 'id" and value? I'm assuming undefined for "id" or should I pass null instead. I'm thinking null may cause issues with data ingestion. Same situation for "value", do I pass 0, undefined or null? 

 

Thanks!

 

3 Replies

Avatar

Level 10

value for page view = 1 

for cart object for example value of cart ....

_id is self populating so you do not need to care of that. If there is an * in the element then its self populated

Avatar

Level 4

Hi Michael, I'm talking about when I don't want to populate the properties, but I decided just to not include the node instead of trying to set values.

 

Thanks!

Avatar

Level 10

THe ones with * are populated automatically. If you do not want to populate some field then do not put any data element into it 

If I do not understand something put a screenshot from Web SDK