AnsweredAssumed Answered

Nintex Workflow 2010 - Inline Functions

Question asked by hachishti on May 25, 2015
Latest reply on May 26, 2015 by hachishti

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},[varWorkflowPhase],{WorkflowVariable:paramWorkflowPhase}){TextEnd},[varLastTaskRespondentDisplayName],{WorkflowVariable:paramLastTaskRespondentDisplayName}){TextEnd},[varProjectCode],{WorkflowVariable:paramProjectCode}){TextEnd},[varProjectName],{WorkflowVariable:paramProjectName}){TextEnd},[varProjectManagerName],{WorkflowVariable:paramProjectManagerName}){TextEnd},[varApproverComments],{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},[varProjectName],){TextEnd},[varProjectManagerName],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},[varApproverComments],{WorkflowVariable:paramApproverComments})

Outcomes