This project has moved. For the latest updates, please go here.
1
Vote

Return reference to converted document in workflow activity

description

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.

comments

keg7271 wrote Oct 17, 2013 at 3: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 3:44 PM

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

keg7271 wrote Oct 18, 2013 at 6: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 6: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 pas.codeplex.com), but is just not something I've implemented in this project as of yet.

keg7271 wrote Oct 28, 2013 at 2: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 pas.codeplex.com, 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 3: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 12, 2014 at 11:42 PM

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 pas.codeplex.com, just to maintain the separation of technologies.

filalisimo wrote Jul 17, 2014 at 5:33 AM

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

Thanks.

TrevorSeward wrote Jul 17, 2014 at 7: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.