compute label name | Community
Skip to main content
Level 4
Dec 8, 2017 4:05 AM UTC
Solved

compute label name

HI

I am trying to generate a computed label on the delivery templates so that I can have generic name on the campaign deliveries( under Analysis tab) I have many deliveries so I dont want to have many campaign templates. for somehow when I enter a script i get an error when I include a conditional statement. Any Idea why is not working?

Welcome <% if (<%= recipient.productCode %>== "101") { %> camp1<% } %>

JST-310000 Error while compiling script 'delivery name' line 4: illegal XML character

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Jean-Serge_Biro
Jean-Serge_BiroAccepted solution
Level 10
Dec 8, 2017 5:35 PM UTC

No, you can get values from your specific schema, but it should come from a 1-1 or N-1 relationship  (blue one) not from a 1-N relationship (yellow one) because otherwise how can you select the exact value between many records linked to your delivery ?
If you select a yellow relationship, AC takes randomly one record of the linked dimension.

11 replies

florentlb
Level 10
Dec 8, 2017 1:43 PM UTC

Hi Vendim,

Can you share the whole script so we can take a look at it?

I'm not sure of what the best practices are in this case.

Florent

Translate