Question
IBM India Pvt. Ltd.
IN
Last activity: 6 Aug 2020 3:44 EDT
How to create dynamic URL in correspondence rule in pega V8.2.7
Hi,
I have a requirement to create dynamic URL and place it in a correspondence rule such that when system sends a mail then customer will see the link and he/she will also open the link from the email itself.
Below approach has been taken and it's not working in pega v8.2.7
1. use the property reference and make format as pxLink / pxURL.
2. Also tried the property reference in <a href=""> tag and after saving the correspondence rule, code has been changed. So it's not working.
Please suggest.
Thanks,
Abhishek
***Edited by Moderator Marissa to update Platform Capability tags****
-
Like (0)
-
Share this page Facebook Twitter LinkedIn Email Copying... Copied!
Capgemini
NO
Hi Abishek,
Can you try below snippet and Save it from source only mode of correspondence.
<a href="<pega:reference mode="javascript" name="PROPERTY_ID"></pega:reference>">TEXT</a>
-
Mohammed Ali
IBM India Pvt. Ltd.
IN
Hi,
It's not working. Code is getting changed while saving this corr rule.
Pegasystems Inc.
IN
Code is getting changed while corr rule ? are you using a table structure in correspondence rule or using <table> ((in source only mode)) with a repeating source ?
Updated: 3 Aug 2020 6:22 EDT
IBM India Pvt. Ltd.
IN
No table is used. Just static text is present. Along with the text, I need to send the dynamic URL as a link.
Capgemini
NO
Can you share the source code of the correspondence to suggest to you better?
Updated: 14 Jun 2021 7:38 EDT
Pegasystems Inc.
IN
Can you try building the URL dynamically in the Correspondence fragment rule and refer it in the Correspondence rule.
-
Anil Kumar Vooradi
IBM India Pvt. Ltd.
IN
Hi,
Dynamic URL has been created in the activity rule. But when the property rule is referenced in the correspondence, it's not working. I have tried to refer this property using pxLink but not working.
IBM India Pvt. Ltd.
IN
Hi,
Is there any other approach to meet the requirement? Please let me know on this.
Thanks,
Abhishek
Coforge
IN
Hi AbhishekDe
Try this way, it will work
Use the paragraph rule to display the link. And later include the paragraph in correspondence rule using <include> tag
Syntax <Include name = "paragraph_name" type= Rule-HTML-Paragraph/>
You could do this by selecting the "Source only mode" checkbox and writing html source in the paragraph rule which uses "pyMessage" property from the primary page. Also you could have a parameter set on the section containing the paragraph and have it called as param.nameofparameter in the source mode. Both these cases you can have the values set dynamically for the hyperlink in a preprocessing activity.
<p><a href="http://<pega:reference name=".pyMessage"></pega:reference>"><pega:reference name="pyWorkPage.pyMessage"></pega:reference></a> </p>
-
Susmita Korade