cancel
Showing results for 
Search instead for 
Did you mean: 
elko
Nintex Newbie

DocGen and inserting html into document

For all our form submissions I track the outcomes of every task as they're completed and write it back into the form itself. This way if any tasks or workflow history is deleted in the future, or the forms need to be moved, the audit trail stays in tact. 

 

The workflow history is a HTML table.

HTMLWorkflowHistory.png

 

When I tag a document for document generation all the HTML is removed and I'm left with a block of text.

WordWorkflowHistory.png

 

I'd like to keep the format of my HTML table because it's so much easier to read. Does anyone know of a way to insert a html table into a word document when using the Document Generation action?

Labels: (2)
0 Kudos
Reply
11 Replies
Community Manager Community Manager
Community Manager

Re: DocGen and inserting html into document

@DocFather_Ray  or @rickdemarco may know.

 

I think the text coming from the workflow is text-based. Ideally, this is an MS Word formatting issue and you would need to create a table structure within the action to then doc gen the information as a table.  Lets see what they may come back with.

0 Kudos
Reply
elko
Nintex Newbie

Re: DocGen and inserting html into document

For now I'm using a web service action to send info to an Azure runbook, bring back the table as a collection and then use the table function in the Document Generation action. Not sure how else to approach it. 

0 Kudos
Reply
Community Manager Community Manager
Community Manager

Re: DocGen and inserting html into document

@elko thats actually a good approach for the table. If the data is available in the workflow as a table, then the output would be on the document generation action to complete.

0 Kudos
Reply
Warwick
Nintex Newbie

Re: DocGen and inserting html into document

is the table straight html in a multi-line text column in the SharePoint list?
0 Kudos
Reply
elko
Nintex Newbie

Re: DocGen and inserting html into document

yes, exactly as you have described
0 Kudos
Reply
Warwick
Nintex Newbie

Re: DocGen and inserting html into document

can confirm, looks like table rich text/html isn't supported in document generation 

0 Kudos
Reply
Community Manager Community Manager
Community Manager

Re: DocGen and inserting html into document

@Warwick I'm tagging one of our DG PMs @SamSysum to see if he can chime in on this.

0 Kudos
Reply
Nintex Employee
Nintex Employee

Re: DocGen and inserting html into document

@Warwick - @eharris04 is correct, unfortunately at this time we do not support Rich Text/HTML in the DocGen Action. This is something we have in our Backlog, we'll keep you posted as we get closer to implementing support. 

0 Kudos
Reply
Warwick
Nintex Newbie

Re: DocGen and inserting html into document

Rich Text is supported, it's just very buggy and half baked currently. Support for UL and OL, BR and P seems to work, but not much else and if you don't clean up classes and style via regex the action always fails

0 Kudos
Reply