Email linked to particular Journey | Community
Skip to main content
Level 2
June 21, 2024
Solved

Email linked to particular Journey

  • June 21, 2024
  • 1 reply
  • 596 views

Hi,

 

I would like to create a segment for users who have received the email linked to particular journey.

What attributes are needed? What dataset are they in?

 

thank you very much.

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 Anuhya-Y

@user36079 

The below query gives the number of distinct profiles that entered the given journey in the given time frame.

SELECT count(distinct _experience.journeyOrchestration.stepEvents.profileID)
FROM journey_step_events WHERE _experience.journeyOrchestration.stepEvents.journeyVersionID = '<journeyVersionID>'
AND _experience.journeyOrchestration.stepEvents.nodeType='start'
AND _experience.journeyOrchestration.stepEvents.instanceType = 'unitary'
AND DATE(timestamp) > (now() - interval '<last x hours>' hour);

1 reply

Anuhya-Y
Community Advisor
Anuhya-YCommunity AdvisorAccepted solution
Community Advisor
June 21, 2024

@user36079 

The below query gives the number of distinct profiles that entered the given journey in the given time frame.

SELECT count(distinct _experience.journeyOrchestration.stepEvents.profileID)
FROM journey_step_events WHERE _experience.journeyOrchestration.stepEvents.journeyVersionID = '<journeyVersionID>'
AND _experience.journeyOrchestration.stepEvents.nodeType='start'
AND _experience.journeyOrchestration.stepEvents.instanceType = 'unitary'
AND DATE(timestamp) > (now() - interval '<last x hours>' hour);