Question

1
Replies
394
Views
PradeepD5158 Member since 2015 1 post
TD BANK
Posted: 3 years ago
Last activity: 3 years 4 months ago
Closed

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>

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?

Case Management
Moderation Team has archived post
Share this page LinkedIn