compute label name | Community
Skip to main content
Level 4
December 8, 2017
Solved

compute label name

  • December 8, 2017
  • 11 replies
  • 6168 views

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.
Best answer by Jean-Serge_Biro

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

Level 4
December 11, 2017

Thanks JS

this was very helpful so solve my problem.

I will try with custom schema so we can Automate the naming of the deliveries based on some business rules ( instead of creating many templates)