MOSS Forum

 
Home » Forum » MOSS       Ask a questionRSS Feeds

SPD Workflow - List Item ID variables

  Date: Oct 13, 2011      Category: MOSS      Views: 176
 

I am trying to use a counter in an SPD workflow. I am pulling the value of a
field, then adding 1 to it and I want to pull a field in a list where
ID=variable. Here is the pseudocode.

Set tempCounter = listA(counter) where ID = 1
Calculate tempCounter + 1 Output to tempCounter
Retrieve listB(someField) where ID = tempCounter

It won't let me do this because the ID field cannot be compared to something
other than a List Item ID type field. How can I do this?

Tagged:            

 

4 Answers Found

 
Answer #1       Answered On: Oct 13, 2011       

If you set the ID field as a workflow variable, would that work? (then you
aren't comparing directly against the ID, but as a variable that was set based
on the ID.)

 
Answer #2       Answered On: Oct 13, 2011       

Ah, I'll just create another field equal to the ID field. Then it won't need to
be List Item ID variable type!

 
Answer #3       Answered On: Oct 13, 2011       

I believe you need to create a variable of the ID field and not
reference the ID field directly. You could make it a number.

 
Answer #4       Answered On: Oct 13, 2011       

I just used a different field. The ID fields were out of order because some
records had been deleted. I needed them to be sequential, and there were only 8
records in a fairly static list.

 
Didn't find what you were looking for? Find more on SPD Workflow - List Item ID variables Or get search suggestion and latest updates.


Your Answer
  • Answer should be atleast 30 Characters.
  • Please put code inside [Code] your code [/Code].