0

Steps:

1) using sharepoint 2010 designer workflow, create an instance of a Document Set and have the ID of the created instance returned.

2) set the returned ID to a field in the list that was used to initiate the workflow.

3) look at the id of the value returned, vs the actual id of the document set instance.

result: the returned value is -1 of the actual value.

expected: the same id values.

i tried to "get around" this by adding a calculation step to add 1 to the value returned.

what it did was add 1 to the end of the string value returned (so if the wrongid was 322 and i expected 323 to be the final calculated number, it returns 3221).

4
  • 1
    can you store the ID in a workflow variable? That way you can set the datatype to integer which will help with your calculation Commented Mar 27, 2013 at 23:10
  • i stored the ID in a workflow variable that i setup as an integer. i then perform the calculation, but i can't write the value back to a field without an error in the workflow. Commented Apr 3, 2013 at 23:00
  • what is the error? Commented Apr 3, 2013 at 23:23
  • it is a generic Coersion error in the workflow. Commented Apr 4, 2013 at 19:12

1 Answer 1

0

this isn't an answer, it is a workaround.

use infopath to set the default value of e.g. PALID = TempPALID +1 in the workflow itself, set the list item id to TempPALID

then when i construct my URL to go to the PALID it populates when the form is loaded with the correct value.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.