Skip to main content
Nintex Community Menu Bar

Filter Workflow Task List using related content

  • July 18, 2020
  • 2 replies
  • 38 views

Forum|alt.badge.img+1

I'm now to Nintex and may be missing something or approaching the problem incorrectly. 

Using On Prem SP2016 Nintex Forms and Workflow.

Here is my problem.  I have a list with a many step state machine workflow for approval.  On the List form I have a listview control Showing a view of the Workflow Tasks List with the task outcomes etc.

I would like to filter that is view to only show the tasks related to the current Item.  I tried using the Related Content field but cannot get it to work.  What is the best way to approach this problem?

Thanks

2 replies

Forum|alt.badge.img+8
  • Novice
  • July 20, 2020

Hi @WLinder,

try this:

  • add a single line of text column to your list to store the workflow instance id in.
  • In your workflow, add a action which writes the instance id to the new single line of text field
  • Optional: At the end of your workflow, clear the field
  • In your form, add a list view with a filter on the instance id

 


Forum|alt.badge.img+1
  • Author
  • July 22, 2020

I don't see a workflow instance column in the Workflow Tasks list so that is not going to help.

 

I think the answer will be to try and use CAML to break apart the Related Content field to get the ID of the list item that the workflow is running against. I can then use that with a list view to filter.