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

How to build a dynamic URL in a delivery

Avatar

Avatar
Affirm 1
Level 1
gnathanmitchell
Level 1

Likes

0 likes

Total Posts

5 posts

Correct Reply

1 solution
Top badges earned
Affirm 1
View profile

Avatar
Affirm 1
Level 1
gnathanmitchell
Level 1

Likes

0 likes

Total Posts

5 posts

Correct Reply

1 solution
Top badges earned
Affirm 1
View profile
gnathanmitchell
Level 1

06-02-2020

I am using a content manager URL to pull content into an email. A hard-coded URL works like a charm. I want to change that URL based on a field in my workflow and I cannot get it to work. For example:

 

The delivery html looks like this:
<HTML><HEAD>
</HEAD>
<BODY>
<P><%@ include file='https://www.google.com/coolstuff' %></P>

</BODY></HTML>

 

This works fine. But lets say I want the end of that URL to take you to a different page the html would look like this:

<HTML><HEAD>
</HEAD>
<BODY>
<P><%@ include file='https://www.google.com/targetData.variables' %></P>

</BODY></HTML>

 

This breaks the URL and renders nothing. 

 

What is the syntax I am missing? or is it even possible?

Campaign dynamic URL

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar
Contributor
MVP
wodnicki
MVP

Likes

923 likes

Total Posts

1,050 posts

Correct Reply

493 solutions
Top badges earned
Contributor
Shape 1
Give Back 100
Give Back 50
Give Back 25
View profile

Avatar
Contributor
MVP
wodnicki
MVP

Likes

923 likes

Total Posts

1,050 posts

Correct Reply

493 solutions
Top badges earned
Contributor
Shape 1
Give Back 100
Give Back 50
Give Back 25
View profile
wodnicki
MVP

06-02-2020

Hi,

 

@include can't be set dynamically.

 

Thanks,

-Jon

Answers (1)

Answers (1)

Avatar

Avatar
Boost 3
Level 1
InderM
Level 1

Likes

3 likes

Total Posts

5 posts

Correct Reply

1 solution
Top badges earned
Boost 3
Boost 1
Affirm 1
View profile

Avatar
Boost 3
Level 1
InderM
Level 1

Likes

3 likes

Total Posts

5 posts

Correct Reply

1 solution
Top badges earned
Boost 3
Boost 1
Affirm 1
View profile
InderM
Level 1

06-02-2020

Hi,

Can you please share what error you received on browser?

 

In delivery, you need to pass targetData from your Campaign's workflow, if looks like either the target data is not defined correctly or the null value is getting passed as the target data. 

 

You can also debug your code, try to print tagetDate variable both in workflow and delivery and see what result you re getting. 

Hope this helps

 

Regards