Expand my Community achievements bar.

We are excited to introduce our latest innovation to enhance the Adobe Campaign user experience — the Adobe Campaign v8 Web User Interface!
SOLVED

DYNAMIC CONTENT & COLLECTION FIELDS

Avatar

Level 1

Hi, good morning


I am designing a Transactional Email and I need Dynamic Content to modify its display based on a Field ( called 'Price' ) defined within a Collection ( called 'Promo' ).

When I try to locate 'Price' from Dynamic Content, I can't find it, not even through the search engine. I also try to create the following condition through the code:

context.rtEvent.ctx.Promo.Price === '0'

It doesn't work for me either. I save it but when I send the email with 'Price=0' it continues to send the 'Default' display ( it's as if I didn't understand the instruction ).

My question is if it is possible to access the fields of a Collection from the Dynamic Content to create conditions in Transactional Emails or it only allows access up to the "Context-Transactional Event-Event Context" route.

Thank you so much for your attention
All the best

From 'Product Listing' I have access to the Collections without problem and I see all its fields

 

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

@Toni_Hernandez You should be able to use the collection data as a product listing feature in transactional messages or use the visibility condition to show/hide the structure. 

https://experienceleague.adobe.com/en/docs/campaign-standard/using/designing-content/using-product-l...

Thanks, Sathees

View solution in original post

1 Reply

Avatar

Correct answer by
Community Advisor

@Toni_Hernandez You should be able to use the collection data as a product listing feature in transactional messages or use the visibility condition to show/hide the structure. 

https://experienceleague.adobe.com/en/docs/campaign-standard/using/designing-content/using-product-l...

Thanks, Sathees