Expression in Journey Condition | Community
Skip to main content
July 1, 2025
Solved

Expression in Journey Condition

  • July 1, 2025
  • 1 reply
  • 522 views

need to write expression in journey condition to check if we have any sent email status for specific journey id ?

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 Mohan_Dugganab

Creating expressions using experience events will no longer be supported in the expression editor used in journey conditions

Reference -  https://experienceleague.adobe.com/en/docs/journey-optimizer/using/orchestrate-journeys/journey-use-cases/exp-event-lookup 

Example (Note this is not recommended) - count(#{ExperiencePlatform.AJOFeedback.experienceevent.all(currentDataPackField.eventType == "message.feedback" and nowWithDelta(-1,"days") <= currentDataPackField.timestamp and currentDataPackField._experience.customerJourneyManagement.messageDeliveryfeedback.feedbackStatus=='sent' and currentDataPackField._experience.customerJourneyManagement.messageExecution.journeyVersionID == '<journeyVersionID>')._id}) >= 0

1 reply

Mohan_Dugganab
Adobe Employee
Adobe Employee
July 2, 2025

You can create an audience checking for sent email status and a specific journey version Id and leverage the same audience using inAudience() function 

Sam_AEPAuthor
July 2, 2025

Thanks for your answer! that's exactly what we are doing currently.

We were exploring if it's possible to use the event attributes ('sent', 'open') based condition directly in Journey condition node to avoid hitting the audience guardrail limitations. 

Mohan_Dugganab
Adobe Employee
Mohan_DugganabAdobe EmployeeAccepted solution
Adobe Employee
July 4, 2025

Creating expressions using experience events will no longer be supported in the expression editor used in journey conditions

Reference -  https://experienceleague.adobe.com/en/docs/journey-optimizer/using/orchestrate-journeys/journey-use-cases/exp-event-lookup 

Example (Note this is not recommended) - count(#{ExperiencePlatform.AJOFeedback.experienceevent.all(currentDataPackField.eventType == "message.feedback" and nowWithDelta(-1,"days") <= currentDataPackField.timestamp and currentDataPackField._experience.customerJourneyManagement.messageDeliveryfeedback.feedbackStatus=='sent' and currentDataPackField._experience.customerJourneyManagement.messageExecution.journeyVersionID == '<journeyVersionID>')._id}) >= 0