Question

1
Replies
192
Views
Jose Rico Corrales (JoseRico)
Accenture
System & Marketing consultant
Accenture
ES
JoseRico Member since 2017 4 posts
Accenture
Posted: July 5, 2019
Last activity: July 15, 2019
Posted: 5 Jul 2019 4:51 EDT
Last activity: 15 Jul 2019 10:23 EDT
Closed
Solved

How to pass custom link from treatment to section (Strategy > Treament > Section)

Good morning,


I would like to know how can I pass a custom link that comes from a strategy to a treament, then a section.


For example, let's talk about the property "ButtonLink" that comes from the Pega Marketing Strategy with the following value: "https://www.google.es/{cuStomerId}" where customerId is populated in the strategy. (This is a simple example)



Then I have a treatment called (EmailTemplate) that include a section called (TreatmentOffer01).


When I call this section, I pass the parameter in this way:

Show More

Good morning,

I would like to know how can I pass a custom link that comes from a strategy to a treament, then a section.

For example, let's talk about the property "ButtonLink" that comes from the Pega Marketing Strategy with the following value: "https://www.google.es/{cuStomerId}" where customerId is populated in the strategy. (This is a simple example)

Then I have a treatment called (EmailTemplate) that include a section called (TreatmentOffer01).

When I call this section, I pass the parameter in this way:

<pega:include name="TreatmentOffer01" type="Rule-HTML-Section">
<pega:param name="ButtonLink" ref=".OfferData.ButtonLink"/>
</pega:include>&nbsp;<br />
In the section TreatmentOffer01 I have a button that redirects to the link that comes from the param ButtonLink but is not working as expected because the href value is not being populated with the ButtonLink's value.
Button code in TreatmentOffer01 section:
<a data="<pega:include name='MKTEmailLink' type='Rule-HTML-Section'>
<pega:param name='SuppressHref' value='True'/>
<pega:param name='Trackable' value ='true'/>
<pega:param name='Resp' value='Accepted'/>
<pega:param name='URL' ref='<pega:reference name=Param.ButtonLink></pega:reference>'/>
<pega:param name='URLParam' value='false'/>
</pega:include>
</a>
How can I populate URL to achieve this? Thanks!
Rgds,
Jose.

Show Less
Pega Marketing
Moderation Team has archived post, This thread is closed to future replies. Content and links will no longer be updated. If you have the same/similar Question, please write a new Question.