Question
Accenture
IN
Last activity: 31 Aug 2017 15:07 EDT
Link to Open the Case, added in Correspondence rule does not work as expected
Hi Team,
I have added the link of my present Case to the Correspondence rule as a Correspondence fragment. On the click on this link from the email received, it opens the review harness of the case, but the other areas in the User portal are not loaded (Left navigation Menu, My Worklist, My Workbasket etc...). I believe these are 2 actions, first loading the User portal and then Opening the review harness of the case. It is possible to combine these actions on a single click? Is there an alternative to the getPublicLinkURL() method used in the Correspondence Fragment rule? Below is the code snippet used in the Correspondence Fragment:
{%
tools.putSaveValue("PublicLinkURL",pega_procom_pegaprocomutilities.getPublicLinkURL());
%}
Hi Team,
I have added the link of my present Case to the Correspondence rule as a Correspondence fragment. On the click on this link from the email received, it opens the review harness of the case, but the other areas in the User portal are not loaded (Left navigation Menu, My Worklist, My Workbasket etc...). I believe these are 2 actions, first loading the User portal and then Opening the review harness of the case. It is possible to combine these actions on a single click? Is there an alternative to the getPublicLinkURL() method used in the Correspondence Fragment rule? Below is the code snippet used in the Correspondence Fragment:
{%
tools.putSaveValue("PublicLinkURL",pega_procom_pegaprocomutilities.getPublicLinkURL());
%}
{WHEN useDesktop}
<a target="_blank" href="{$save(PublicLinkURL)}?pyActivity=Work-.Open&Action=Review&HarnessPurpose=Review&InsHandle={%
try {
appendString(pega_rules_utilities.encodeURLParameter(tools.getDatabase().getHandle(tools.getStepPage())));
} catch(DatabaseException de) { appendString(pega_rules_utilities.encodeURLParameter(tools.getProperty(".pzInsKey").getStringValue())); }
%}">{.pyID}</a>
{ELSE}
<a target="_blank" href="{$save(PublicLinkURL)}?pyActivity=Work-.Open&Action=Review&InsHandle={%
try {
appendString(pega_rules_utilities.encodeURLParameter(tools.getDatabase().getHandle(tools.getStepPage())));
} catch(DatabaseException de) { appendString(pega_rules_utilities.encodeURLParameter(tools.getProperty(".pzInsKey").getStringValue())); }
%}">{.pyID}</a>
{/WHEN}