Skip to main content
Prithwiraj_Deb
Level 3
October 6, 2023
Respondido

For Commerce order data event ingestion what should be the unique id (_id)

  • October 6, 2023
  • 2 respostas
  • 708 Visualizações

For Commerce order data event ingestion what should be the unique id (_id)

If we have incoming event fields like 

Order ID, LastOrderupdatetimestamp, Order Date 

 

I guess it should be Order ID + LastOrderupdateTimestamp even though Order IDs are generally unique in nature but AEP best practice suggest that to avoid duplicate _ID it should always be concatenated with another field. 

 

Any suggestion?  

Este tópico foi fechado para respostas.
Melhor resposta por arpan-garg

Hi @prithwiraj_deb - You can also create a mapping of the _id field in your dataset and map it to the guid() function. 

2 Respostas

jayakrishnaaparthasarathy
Community Advisor
Community Advisor
October 6, 2023

Hi @prithwiraj_deb  - Yes, you are right. Having order ID + LastOrderupdatetimestamp attribute is a best combination for _ID. Adobe also suggest the same combination to be unique in _ID value.

If you are pretty confident that Order ID alone is unique you can still use it under _ID, but to be safer side it is highly recommned to have concadenate with timestamp field.

arpan-garg
Community Advisor
arpan-gargCommunity AdvisorResposta
Community Advisor
October 9, 2023

Hi @prithwiraj_deb - You can also create a mapping of the _id field in your dataset and map it to the guid() function.