Question

1
Replies
413
Views
Close popover
Pradeep Dhanekula (PradeepD5158)
TD BANK

TD BANK
CA
PradeepD5158 Member since 2015 1 post
TD BANK
Posted: May 31, 2017
Last activity: June 5, 2017
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,
Close popover 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.