Event date as variable

Hello All,
I have a problem, I need to get the Event date of a previous program stage directly in a Program rule. Some one can help please ?

2 Likes

Hey there,
unfortunately the V{event_date} variable will only assign the current event date.
If there is a data element that was captured in the previous event and not in the current event, then you can read up on the the d2:lastEventdate() function.
Otherwise I think you have to build a workaround using a helping data element in each program stage where you assign the event date of the current event, and later use the “Data element in previous event” source type for a variable #{previous_event_date} - linked to this data element.

Best regards
Markus

3 Likes

Markus,
I had already applied the second option.

Thanks,

3 Likes