Hi,
Â
Â
I am facing an issue in fn-Replace() in-line function, if I am using more than three variables in build string and I select the check box "Parse token twice" if I will not select this option it will work only with two variables.
Â
Â
below is my in-line function and its result.
--------------------------------------------------------------------------------------------------------------------------------------------
Â
Â
fn-Replace({TextStart}fn-Replace({TextStart}fn-Replace({TextStart}fn-Replace({TextStart}fn-Replace({TextStart}fn-Replace({TextStart}{WorkflowVariable:paramEmailBody}{TextEnd},tvarWorkflowPhase],{WorkflowVariable:paramWorkflowPhase}){TextEnd},tvarLastTaskRespondentDisplayName],{WorkflowVariable:paramLastTaskRespondentDisplayName}){TextEnd},tvarProjectCode],{WorkflowVariable:paramProjectCode}){TextEnd},tvarProjectName],{WorkflowVariable:paramProjectName}){TextEnd},tvarProjectManagerName],{WorkflowVariable:paramProjectManagerName}){TextEnd},tvarApproverComments],{WorkflowVariable:paramApproverComments})
Â
Â
Â
Â
Below is generated string
------------------------------------------------------------------------------------------------------------------------------------------------------
Â
Â
fn-Replace({TextStart}fn-Replace({TextStart}fn-Replace({TextStart}
Â
Â
Dear ÂvarProjectManagerName],
Â
Â
The TestPhase123 has been approved by .
Â
Â
Project Code:
Project Name: >varProjectName]
Project Manager: >varProjectManagerName]
Project Stage: TestPhase123
Â
Â
Comments:
Â
Â
>varApproverComments]
Â
Â
"This is a system generated message - please do not reply."
{TextEnd},rvarProjectName],){TextEnd},PvarProjectManagerName],test Prog manager name){TextEnd}, varApproverComments],)
Â
Â
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Â
Moreover when there is any comma (,) in task comments or any comma in string then again it will not work.
Â
fn-Replace({TextStart}{WorkflowVariable:paramEmailBody}{TextEnd},lvarApproverComments],{WorkflowVariable:paramApproverComments})