DYNAMIC CONTENT & COLLECTION FIELDS | Community
Skip to main content
July 3, 2024
Solved

DYNAMIC CONTENT & COLLECTION FIELDS

  • July 3, 2024
  • 1 reply
  • 854 views

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

 

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 SatheeskannaK

@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-listings

1 reply

SatheeskannaK
Community Advisor
SatheeskannaKCommunity AdvisorAccepted solution
Community Advisor
July 8, 2024

@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-listings

Thanks, Sathees