How to build a dynamic URL in a delivery | Community
Skip to main content
New Participant
Feb 6, 2020 5:01 PM UTC
Solved

How to build a dynamic URL in a delivery

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?

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Jonathon_wodnicki
Jonathon_wodnickiAccepted solution
New Participant
Feb 6, 2020 5:44 PM UTC

Hi,

 

@include can't be set dynamically.

 

Thanks,

-Jon

5 replies

Level 2
Feb 7, 2020 7:03 AM UTC

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

Translate
Jonathon_wodnicki
Jonathon_wodnickiAccepted solution
New Participant
Feb 6, 2020 5:44 PM UTC

Hi,

 

@include can't be set dynamically.

 

Thanks,

-Jon

Translate
New Participant
Feb 6, 2020 6:30 PM UTC
What can I use then for dynamic urls?
Translate