Question

7
Replies
2713
Views
Praveen Prabakaran (PRAVEENP-1)
Accenture
Associate Manager
Accenture
IN
PRAVEENP-1 Member since 2010 6 posts
Accenture
Posted: August 19, 2016
Last activity: August 31, 2017
Posted: 19 Aug 2016 6:13 EDT
Last activity: 31 Aug 2017 15:07 EDT
Closed

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}

Case Management
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.