Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn More

View all

Sign in to view all badges

Attached file in a continuous delivery

Avatar

Avatar
Validate 1
Level 1
Al_Debaran
Level 1

Likes

0 likes

Total Posts

2 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
View profile

Avatar
Validate 1
Level 1
Al_Debaran
Level 1

Likes

0 likes

Total Posts

2 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
View profile
Al_Debaran
Level 1

13-12-2017

Hi,

I currently have a workflow witch generates a file whose name is different every hour then sends this file in a delivery, so a delivery is created every hour. I want to change this behavior by using a continuous delivery activity so that only one delivery will be displayed in my interface.

My problem is that I can't use the same script to attach the file (delivery.attachment [0] .name = vars.filename;) as my previous workflow.

The delivery object does not seem to be known in a continuous delivery activity. Is it possible to attach a file with a different file name each hour to a continuous delivery? Thank for your help.

Al.

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar
Validate 1
MVP
Jean-Serge_Biro
MVP

Likes

353 likes

Total Posts

464 posts

Correct Reply

153 solutions
Top badges earned
Validate 1
Boost 50
Boost 5
Boost 3
Boost 250
View profile

Avatar
Validate 1
MVP
Jean-Serge_Biro
MVP

Likes

353 likes

Total Posts

464 posts

Correct Reply

153 solutions
Top badges earned
Validate 1
Boost 50
Boost 5
Boost 3
Boost 250
View profile
Jean-Serge_Biro
MVP

22-01-2018

Hi Al Debaran,

Either with the continuous delivery activity or with the equivalent Javascript JSAPI submitNotification, you can't achieve directly the attachment by JS code. The object delivery is not defined in the context.

submitNotification and continuous delivery activity only allows to add new target contacts to a delivery generated from the delivery model name (scenarioName parameter).

So with a continuous delivery you need to define the attachement filename either directly in the template (delivery model) by using a formula that can change thanks a JS personalisation code, but not related to a delivery recipient (only shared personalisation code for every contact targeted).

Of course, the alternative is to use recurrent deliveries, but it is not the same as continuous ones, less convenient as you mentioned especially for analysis/reporting.

Regards
J-Serge

Answers (3)

Answers (3)

Avatar

Avatar
Validate 1
Level 1
Al_Debaran
Level 1

Likes

0 likes

Total Posts

2 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
View profile

Avatar
Validate 1
Level 1
Al_Debaran
Level 1

Likes

0 likes

Total Posts

2 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
View profile
Al_Debaran
Level 1

19-01-2018

Hi Florent,

Thank for your answer.

Currently, it is exactly the existing behavior, we wish to change it to have a single delivery in the nmsDelivery table. Is there a way to set up a delivery activity to have only one delivery in the end?

Al.

Avatar

Avatar
Give Back 50
Level 10
florentlb
Level 10

Likes

237 likes

Total Posts

1,109 posts

Correct Reply

239 solutions
Top badges earned
Give Back 50
Give Back 5
Give Back 3
Give Back 25
Give Back 200
View profile

Avatar
Give Back 50
Level 10
florentlb
Level 10

Likes

237 likes

Total Posts

1,109 posts

Correct Reply

239 solutions
Top badges earned
Give Back 50
Give Back 5
Give Back 3
Give Back 25
Give Back 200
View profile
florentlb
Level 10

15-01-2018

Hi,

Any update on your question? Were you able to test with the template directly?

Florent

Avatar

Avatar
Give Back 50
Level 10
florentlb
Level 10

Likes

237 likes

Total Posts

1,109 posts

Correct Reply

239 solutions
Top badges earned
Give Back 50
Give Back 5
Give Back 3
Give Back 25
Give Back 200
View profile

Avatar
Give Back 50
Level 10
florentlb
Level 10

Likes

237 likes

Total Posts

1,109 posts

Correct Reply

239 solutions
Top badges earned
Give Back 50
Give Back 5
Give Back 3
Give Back 25
Give Back 200
View profile
florentlb
Level 10

02-01-2018

Hi,

Not sure that continuous deliveries use the same delivery object. Did you try using the delivery template object instead?

Florent