Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

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).

share
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 –  Ryan Erickson Mar 27 '13 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. –  April Drake Apr 3 '13 at 23:00
    
what is the error? –  Ryan Erickson Apr 3 '13 at 23:23
    
it is a generic Coersion error in the workflow. –  April Drake Apr 4 '13 at 19:12

1 Answer 1

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.

share

This site is currently not accepting new answers.

Not the answer you're looking for? Browse other questions tagged .