Contextual field with Helper function | Community
Skip to main content
New Member
October 6, 2025
Question

Contextual field with Helper function

  • October 6, 2025
  • 3 replies
  • 593 views

I am facing some error when adding contextual field in function while trying to do some personalization in email with in a journey. 

Any idea on what could be the resolution for this ?

3 replies

Mohan_Dugganab
Adobe Employee
Adobe Employee
October 6, 2025

Kindly use back ticks for the event Id 

Example -> context.journey.events.`1792665356`........
riyaAAuthor
New Member
October 6, 2025

don't think that is correct syntax.

 

 

 

Mohan_Dugganab
Adobe Employee
Adobe Employee
October 6, 2025

It's a different error now and the function signature is not being matched. You are using an array object where as the function expects a string. You can validate it on the following lines

Example {{#each context.journey.events.`eventId`._tenant.npoEvent.traject as |s|}} {%= replaceAll(s.discountedPrice,"([0-9]+\\.[0-9]{2}).*","$1") %} {{/each}}

 

Mayank_Gandhi
Adobe Employee
Adobe Employee
October 6, 2025

@riyaa 

Can you Reference contextual fields directly?

{{context.journey.events.923737463.LEAD_88_8_05.discountedPrice}}

 

Sukrity_Wadhwa
Community Manager
Community Manager
October 17, 2025

Hi @riyaa,

Were you able to resolve this query with the given solution or was this something you were able to figure out on your own or do you still need help here? Do let us know.

Thanks!

Sukrity Wadhwa