Hi,Are you able to help with the below script please? I have created an integer instance variable called 'Average'. The problem is that variable is outputting the same value for all rows. Rather than working out the average and giving that value to each recipient.The calculations are correct, but it...
Thanks Vipul, that's very helpful.Are you able to help with the below script please? My issue is the 'Average' (integer) instance variable is giving the same value for all rows. Rather than working out the average and giving that value to each recipient.The calculations are correct, but it only outp...
Hi,Using an enrichment, I'm creating a custom instance variable in a workflow. As shown below.However, the issue is that this field defaults to a string. I need it as a number. How can I change the data type to be a number?Thanks,Rob
Hi,How can I calculate the days difference (using the daysdiff function) on one date field? Preferably for the most recent 3/4 dates in the field.BACKGROUND: I need to know the days between each customers multiple journey dates for a campaign. Then work out the average of this number.Many thanks,Rob
Hi,I have received a brief which requires me to work out the average number of days between a customers previous 4 journey departure dates.Is this possible using an enrichment? Or is a script required?Please assist.See below screenshot of example date data.Many thanks,Rob
Hi,I'm attempting to display the result of the 'seasons' alias in a delivery using targetData. However the delivery fails due to 'targetData not defined'.Please can you tell me how it's possible to do this?The workflow appears as below:The JavaScript logs the count correctly:I there a specific way t...