Extracting comments from LAZY APPROVAL email body and step by step implementation in NINTEX on-premise

  • 15 July 2018
  • 4 replies
  • 142 views

Badge +4

Today I am going to illustrate practically how to capture LAZY approval comments from inside mail body in NINTEX on-premise. There could be different ways but the way I have implemented in recent project seems to be very easy and useful.

 

Actually from any task component inside in the workflow if you enable LAZY approval recipient will get an email in his mail box.(Configuring lazy approval : Click here)

User can then simple reply back to the mail putting his opinion (Like Approved, Reject, Rework etc) in the first line and additionally can put comments in the next line to move the workflow further. Its something looks like as follows:

 

217020_pastedImage_1.png

 

Here Approved is the action word and the comment is ‘Everything looks good. Approving for the next step.’ (Highlighted in yellow colour)

We want to extract this comment i.e. ‘Everything looks good. Approving for the next step.’ from the mail body and log it.

Assuming user always will put additional comments from the second line (in first line it's assumed to be the keywords/opinion like Approved, Reject, Rework etc). Go through the following steps to extract the comments as follows:

 

217021_pastedImage_2.png

217031_pastedImage_3.png

217032_pastedImage_4.png

217033_pastedImage_5.png

217034_pastedImage_6.png

217035_pastedImage_7.png

217036_pastedImage_8.png

217037_pastedImage_9.png

Remember:
1. Set default value of index to 0
2. Set default value of Startindex to 0

 

Workflow overall structure looks like as follows:

 

 217038_pastedImage_10.png

217039_pastedImage_11.png

217040_pastedImage_12.png

217041_pastedImage_13.png

217042_pastedImage_14.png

 

Detail configuration of each component:

 

There are 12 components involved in the workflow to accomplish it. Details of each component in chronological order are given as follows:

 

217043_pastedImage_16.png

217044_pastedImage_17.png

217045_pastedImage_18.png

217046_pastedImage_19.png

217047_pastedImage_20.png

217048_pastedImage_21.png

217049_pastedImage_22.png

217050_pastedImage_23.png

217051_pastedImage_24.png

217052_pastedImage_25.png

217053_pastedImage_26.png

217054_pastedImage_27.png

217055_pastedImage_28.png

                                                                              217057_pastedImage_30.png

 

N.B. Here ‘EmalContentSingleLine’ variable and break tag (<br/>) is appended with previous comment to give the new comment i.e. Comment = Comment + EmalContentSingleLine + “<br/>”

 

217058_pastedImage_34.png

 

Hope this will ease your process to extract the comments from LAZY approval.

 

Today as a NETWOVIANS it’s a very special day and I am very happy to contribute to my community on behalf of NETWOVEN.

 

 

Cheers!


4 replies

Userlevel 2
Badge +11

Excellent. Keep in mind that a Loop will pause every loop instance. If you don't want this delay you should use a Foreach action in stead of the Loop.

Badge +4

Thanks! Yes absolutely correct.

The 4th action item i.e. set a variable is blank? what are we setting here?

Userlevel 2
Badge +11

Pity the images are missing 😥

Reply