Hello all,
On occasion I will set the delivery label via a script (delivery.label = XXX). Is it possible to update the label with targetdata, from an Enrichment, earlier in the workflow? I've tried just the standard "delivery.label = XXX_<%= targetData.YYY%> but this fails.
Is anything along these lines possible?
Thanks in advance for your thoughts. Please let me know if some further information would be helpful.
Kind regards,
Views
Replies
Total Likes
Hi Andy,
This may be possible however if I understand correctly, the targetData will have a value for each record whilst there is only one label.
Where is the label in the target data collected from? If you can be a bit more specific then I may be able to help.
Thanks
Yusuf
Views
Replies
Total Likes
Hi Yusuf,
Thanks for getting back to me on this.
The data sets I have will have between 3 and 6 different cell flags in them. So, for example, if there are 1,000 records in the data, 250 of them will be marked with a Cell ID of '001', another 250 will be marked with '002' etc. Currently, I will split this data set and send each sub-set a separate delivery, but I wanted to try and keep the data as a single set, so the label is defined dynamically, much like you can with the Analysis tab of a Recurring delivery.
So, again to clarify, I want to pass 1 set of data, that would be, say, 4 seperate cell IDs and configure the label they all get the same Delivery, but those with a Cell Id of 001 get a label of 'LABEL_001' and those flagged as Cell Id 002 would get 'LABEL_002' etc.
Does that make sense and is that possible?
Thanks again.
Views
Replies
Total Likes
Hi Andy,
From the top of my head (and this will require some testing) it may be better to use JavaScript rather than targetData.
After the cell activity, in every transition you have coming out, insert a JavaScript activity. Here you can assign a new variable for each transition (001, 002, 003 etc) but name the variable the same name and have different values. Then have one delivery activity, use a type of delivery that allows re-sending and in the Script tab of the delivery you can call the variable (delivery.label =...).
Hopefully this should run one transition at a time where it will compute the delivery label with each variable you have assigned.
Let me know if this works :-)
Thanks
Yusuf
Views
Replies
Total Likes