Does not work "delivery.variables._var [0] .stringValue = instance.vars.xxx" in "Recurring Delivery"

Avatar

Avatar

uz2020

Avatar

uz2020

uz2020

16-02-2021

I asked a question before and got an answer.

Error no outout, but it does not appear in the preview.

I don't know the cause.

I'm at a loss....

 

"Enable but do not run", "Enable (waiting for approval)" Can Ipreview in this state? Can preview without sending?

Am I doing something wrong?

 

Thanks,

 

JS

instance.vars.yearTest = formatDate (new Date(), "%Y")

Script Tab

delivery.variables._var [0] .stringValue = instance.vars.yearTest

Property

yearTest

Text Content Tab

<%= variables.yearTest%>

 

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar

wodnicki

MVP

Avatar

wodnicki

MVP

wodnicki
MVP

16-02-2021

Hi,

 

Everything you have there is correct (though it can be reduced to <%= formatDate(new Date(), "%Y") %> ;).

You can preview 'without' sending by sending the delivery with confirmation/approvals enabled.

Once sent, the executed delivery can be opened and previewed against target population/vars before confirm button is pressed.

 

Thanks,

-Jon

Answers (0)