I have a library which has an InfoPath form as its content type with a custom workflow built into it (example of workflow in my other question ages ago: Are sharepoint workflows always sequential?) Unfortunately, the way it has been moved into "Production" means that every time I want to update the form and publish it, the old version is overwritten and ALL old forms start to adhere to the new one.
I have a requirement to provide a way to update two fields to a few users. I thought to go the easier way by providing a custom button to those users (they have unique permissions than the other users so I can limit access to the button) and call a custom edit form that provides ONLY those two fields for update purposes. This I have done successfully and the fields are being updated.
I got the way the workflow is started manually which gives me the workflow ID and the list ID:
This also confirms the list ID:
If I follow the instructions provided here: http://ivobouwman.net/2011/03/18/pass-a-listitemid-to-sharepoint-workflow/ I wrote in the following code on the SUBMIT button's onclick (Item ID is hardCoded for now):
I get the following error:
I tried changing the ID's with each other, which still gives me an error. I don;t know what I am doing wrong. What are the parameters of __workflowStart?
Any help would be greatly appreciated!!
Edit: interchanging parameter 1 and 3 with each other like so:
Gives me this error:
Why does it think I am trying to add to list instead of initiaing a new workflow?