This project has moved and is read-only. For the latest updates, please go here.

Return reference to converted document in workflow activity


It would be nice to have a reference to the converted document returned to the workflow so that actions can be taken to against the new document. In other words it would be nice to be able to copy or set properties of the converted document after conversion. I understand that the conversion is performed by a timer job, however, simply converting it is often insufficient since other actions are often required.


keg7271 wrote Oct 17, 2013 at 4:00 PM

Maybe a version can be created that utilizes the immediate jobs queue or the on-demand service queue. Then a guid to the newly created item returned to the workflow.

TrevorSeward wrote Oct 17, 2013 at 4:44 PM

I'll take a look at it to see what may be possible.

keg7271 wrote Oct 18, 2013 at 7:22 PM

I have created an altered version of your code that does an immediate conversion of the document and returns the Guid of the converted item back to the workflow. It also converts PowerPoint files. I can send it to you if you want it.

TrevorSeward wrote Oct 18, 2013 at 7:46 PM

Is this SharePoint 2010 and 2013 compatible? SharePoint 2013 does have the instant conversion available (as well as PowerPoint, which I'm working on as a separate project at, but is just not something I've implemented in this project as of yet.

keg7271 wrote Oct 28, 2013 at 3:23 PM

I've only tested it in SharePoint 2013 through a 2010 workflow and I am using the immediate conversion queue instead of the jobs queue. So, it won't be supported in SharePoint 2010 since it doesn't support the immediate queue concept. I didn't know about, maybe you could use some of this code for that project. If you want the code, how would you like it delivered?

TrevorSeward wrote Oct 28, 2013 at 4:01 PM

Under the Source Code tab, click on Patches -> Upload Patch.

I do need to maintain compatibility, but adding code per version is something on the to-do list.

TrevorSeward wrote Jul 13, 2014 at 12:42 AM

Apologies as I'm just getting back to this solution, but ImmediateConverter.cs wasn't included in the patch. Can you include that?

Also, the PowerPoint portion will likely be moved to, just to maintain the separation of technologies.

filalisimo wrote Jul 17, 2014 at 6:33 AM

is this enhancement done? i would have the updated workflow with a reference to the created document returned after conversion.


TrevorSeward wrote Jul 17, 2014 at 8:50 PM

No, it is not done yet but I've completed the implementation of the Immediate conversions, so it is next on the list.