Question
TD BANK
CA
Last activity: 5 Jun 2017 6:29 EDT
Correspondence Fragment rule adding extra spaces (Carriage Feed and Newline character) in the link
Source view of the rule is something like below:-
<pySourceStream><% tools.putSaveValue("PublicLinkURLRetail", com.pegarules.generated.pega_rules_utilities.getRuleSystemSetting("GRCFW", "PublicLinkURL_Retail")); %> <pega:choose> <pega:when name='useDesktop'> <a target="_blank" href="<pega:reference name='$save(PublicLinkURLRetail)'/>?pyActivity=TD-FW-GRCFW-Work.WorkLinkAccessToRetail&mailThread=<pega:reference name='$save(EmailThread)'/>&InsHandle=ASSIGN-WORKBASKET+ <% try { tools.appendString(pega_rules_utilities.encodeURLParameter(tools.getDatabase().getHandle(tools.getStepPage()))); } catch(DatabaseException de) { tools.appendString(pega_rules_utilities.encodeURLParameter(tools.getProperty(".pzInsKey").getStringValue())); } %>!SendEmailToRetail&InsClass=Assign-WorkBasket&CurrentWorkIndex="> Click Here </a> </pega:when> <pega:otherwise> <a target="_blank" href="<pega:reference name='$save(PublicLinkURLRetail)'/>?pyActivity=Assign-WorkBasket.ProcessAssignment&InsHandle=ASSIGN-WORKBASKET+ <% try { tools.appendString(pega_rules_utilities.encodeURLParameter(tools.getDatabase().getHandle(tools.getStepPage()))); } catch(DatabaseException de) { tools.appendString(pega_rules_utilities.encodeURLParameter(tools.getProperty(".pzInsKey").getStringValue())); } %>!SendEmailToRetail&InsClass=Assign-WorkBasket&CurrentWorkIndex="> Click Here </a> </pega:otherwise> </pega:choose></pySourceStream>
Source view of the rule is something like below:-
<pySourceStream><% tools.putSaveValue("PublicLinkURLRetail", com.pegarules.generated.pega_rules_utilities.getRuleSystemSetting("GRCFW", "PublicLinkURL_Retail")); %> <pega:choose> <pega:when name='useDesktop'> <a target="_blank" href="<pega:reference name='$save(PublicLinkURLRetail)'/>?pyActivity=TD-FW-GRCFW-Work.WorkLinkAccessToRetail&mailThread=<pega:reference name='$save(EmailThread)'/>&InsHandle=ASSIGN-WORKBASKET+ <% try { tools.appendString(pega_rules_utilities.encodeURLParameter(tools.getDatabase().getHandle(tools.getStepPage()))); } catch(DatabaseException de) { tools.appendString(pega_rules_utilities.encodeURLParameter(tools.getProperty(".pzInsKey").getStringValue())); } %>!SendEmailToRetail&InsClass=Assign-WorkBasket&CurrentWorkIndex="> Click Here </a> </pega:when> <pega:otherwise> <a target="_blank" href="<pega:reference name='$save(PublicLinkURLRetail)'/>?pyActivity=Assign-WorkBasket.ProcessAssignment&InsHandle=ASSIGN-WORKBASKET+ <% try { tools.appendString(pega_rules_utilities.encodeURLParameter(tools.getDatabase().getHandle(tools.getStepPage()))); } catch(DatabaseException de) { tools.appendString(pega_rules_utilities.encodeURLParameter(tools.getProperty(".pzInsKey").getStringValue())); } %>!SendEmailToRetail&InsClass=Assign-WorkBasket&CurrentWorkIndex="> Click Here </a> </pega:otherwise> </pega:choose></pySourceStream>
We are getting an extra white space (its actually a newline character) right after "InsHandle=ASSIGN-WORKBASKET+" in the hyperlink and that makes the link unusable.
Did anyone experience this earlier? Any suggestions?