Skip to main content
Level 2
Jul 1, 2025 11:15 AM UTC
Solved

Expression in Journey Condition

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.
Mohan_Dugganab
Mohan_DugganabAccepted solution
Adobe Employee
Jul 4, 2025 10:35 AM UTC

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

5 replies

Mohan_Dugganab
Adobe Employee
Adobe Employee
Jul 2, 2025 1:47 PM UTC

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

Translate
Sam_AEPAuthor
Level 2
Jul 2, 2025 4:28 PM UTC

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. 

Translate
Mohan_Dugganab
Adobe Employee
Mohan_DugganabAdobe EmployeeAccepted solution
Adobe Employee
Jul 4, 2025 10:35 AM UTC

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
Translate