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

How do I update a variable item

Jump to solution

I have a list that contains people and has a manually managed user ID field and a boolean field of 'next person to do something' which is only true for one user at a time. 

In a worklow, I want to

1)grab the ID of the person where boolean field = yes and do something

2)set boolean field to false for person in step 1

3)locate the next person via current ID +1 and set boolean to true

I have a workflow variable for the user ID - so steps 1 and 2 are working well. What I don't see in the update item template, how I can update an item where Field equals manipulated worklow data. Is this not possible?

Thanks from a n00b,

Erin

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

Re: How do I update a variable item

Jump to solution

Alrighty, I found the Math option and abstracted the count to the step before I need the +1. Not the prettiest, but I assume it'll work

0 Kudos
Reply
Highlighted
Automation Master
Automation Master

Re: How do I update a variable item

Jump to solution

Just a quick question, would the following scenario work in your situation?

  1. Query list for boolean field = yes, store listitemID (or userid) in a collection variable
  2. in a for each loop (for each ID in listitemID collection),
    1. do something
    2. set boolean field to No for this item by Update Item action
    3. ---for each will now loop---

In these steps you will not have to do any math to the user id. So in this scenario, if the user Ids are not in order in the list it will not matter. But you can still loop through all items in the list where boolean field is Yes because you have the list item ID and can query that single item and do anything you want with it within the loop.

Hope that helps,

Andrew

View solution in original post

0 Kudos
Reply
Highlighted
Nintex Newbie

Re: How do I update a variable item

Jump to solution

I'd have to capture the counter in the for loop to be able to properly

update the next entry's boolean to yes, correct?

On Tue, Dec 2, 2014 at 3:17 PM, andrewg@intellinet.com <community@nintex.com

0 Kudos
Reply
Highlighted
Automation Master
Automation Master

Re: How do I update a variable item

Jump to solution

Not if you use a foreach loop. You will just set the "Store Result In" for the current ID to a variable and use it to update within the loop. Does that make sense?

0 Kudos
Reply
Highlighted
Nintex Newbie

Re: How do I update a variable item

Jump to solution

Yes and sorry for the late response

0 Kudos
Reply