When initiating a workflow from Content Server, the user is able to add an attachment that is not already in Content Server (upload a new document).
Through EWS, it seems like the only way to attach a document to a workflow is to have the document already in the system.
We need to be able to duplicate the functionality that is available through Content Server's web interface.
We have discovered that when attaching a document through the web interface, looking at the dtree table in the database, it looks like the ParentID of the attachment is one more than the MapID of the initiated workflow. For example, if the MapID is 87926, the attachment's ParentID is 87927. With this information, can we initiate a workflow using EWS and then upload a document using a ParentID that is one more than the MapID? Can we count on it always being one more than the MapID?