cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Nintex Newbie

Save comments

Hello!

I’m new to Nintex, I have a task that will go through (4) employees in order to be completed using State machine, and each has a comment box.

Also, in some cases they will need to return the task to initiator to edit (or correct the data in the form). My question is how can I keep the comments for each one and make it available for other to see.

For example: manager 1 approve the task and write a comment, the task go to manager 2, he should be able to see manger 1 comment and also be able to comment. Manager 3 can see pervious managers comments and so on.

 

I hope that you understand my question.

 

Thanks in advance.

Labels: (2)
0 Kudos
Reply
7 Replies
Highlighted
Nintex Newbie

Re: Save comments

Hi @Yasser.

I've done this a lot.  In the task action, there is a place to store the id of the task that was created.

ethurber_0-1605793152929.png

I then use that ID to get the ApproverComments from the task.

ethurber_1-1605793234281.png

I then write that variable to an append-only multi-line field in the list.

What I end up with is this.

ethurber_3-1605793704089.png

It is important to remember that the name will be the name of the workflow initiator.  There is no way around this because all actions in the workflow are running as the initiator.

 

I hope this helps.

 

0 Kudos
Reply
Highlighted
Automation Master
Automation Master

Re: Save comments

@Yasser , @ethurber since you're using Task ID and Approver's comment from your Workflow Task list, why don't you also get the value from Assigned To field of your Workflow Task list? If you want the Approver's name is specific format then using Set Variables you can get the First and Last names too.

 

Also, if you click "Insert Reference" and go to Common, you do have Last Task Respondent Display Name and Approver Comments.

0 Kudos
Reply
Highlighted
Nintex Newbie

Re: Save comments

Create a workflow variable for comments, in your flexitask connect your comments sections to the variable if you wish to show it to the submitter send it by mail or create a column in the list and set it equal to the variable after it is rejected for correction, there is a more complex way of doing this which is currently what i am using

 

let me know if you are interested so i can share it with you

0 Kudos
Reply
Highlighted
Automation Master
Automation Master

Re: Save comments

@BigBlockChevy ...could you please elaborate more on "in your flexitask connect your comments sections to the variable" part? I don't think I've seen an option to capture the comments !!! The only options I've seen are to make comments required or optional for each outcome and to capture the outcome. 

 

Also, in my proposal, one needs to save the information in a variable and then use it or they can use it directly in an update item using workflow context as an option.

0 Kudos
Reply
Highlighted
Nintex Newbie

Re: Save comments

The way i capture comments is by creating a workflow variable of type multiline text, then when editing the flexi task i add a multilline texbox and in the 'connected to' drop down i select the variable i created then i insert the variable data onto the column of my choice in the workflow

 

for validation of that text box i use java script to get value of the decision and at the same time if the mulitline text box is empty and the value of the decision is equal to rejected it will ask the user to enter reasons for rejection in the comments box (i don't use the out of the box validation on flexi task)

 

let me know if you need me to walk you through this

0 Kudos
Reply
Highlighted
Nintex Newbie

Re: Save comments

 

Thank you all!

@BigBlockChevy how to set the column in the list to the variable?

and should I update the form for employe B to show the pervious comment of employe A for example?

knowing that I use nintex form and not the default.

I have cases that go through many employees and each will have to comment and give their opinions.

So I need the perfect way to do that.

0 Kudos
Reply
Highlighted
Nintex Newbie

Re: Save comments

ok brother this is going to be a long write up so read it carefully:

  1. create an AuditLogList that store your comments
  2. that audit log list will have four columns Unique ID (Text), User (People), activity time (dateTime), comments (multiline text)
  3. in your workflow you will create a workflow variable lets call it "WFTaskComments"
  4. in your felxitask form you will connect your comments text box to that variable
  5. after the flexi task you will add a workflow "create item" action and select the auditLogList created in step 1
  6. in that action you will grab your workflow data including your comments (Check ScreenShot below)
    • your unique ID will be inserted in That list (for me it was FormNumber)
    • the user who done the last activity (meaning get the user who responded in the flexi task)
    • current time (to store the action date/time)
    • your comments (in here you will add the variable that you created)CreateItemAction.JPG
  7. now add the same action under every flexiTask
  8. to show the auditLog in each flexi task or the item itself, add a list viewer in each form and filter by the unique number of each form and that's it (Please don't forget to create a unique ID for each form submitted to be referenced in the list viewer) end result will look like below

tempsnip.png

this might be difficult to comprehend at first but you have to read it carefully and try to do it a couple of times until you can implement it successfully

 

best of luck and let me know if you need help

0 Kudos
Reply