You are viewing limited content. For full access, please sign in.

Question

Question

Create Entry or new document

asked on February 13, 2018

Is there a way in workflow to Create a new document and add text to it ?

I have a process that finds records, extracts data into tokens. I would like to output the values of those tokens into a document or entry as a text list. Not use the metadata fields.

 

thanks

0 0

Answer

SELECTED ANSWER
replied on February 14, 2018 Show version history

You can use the Create Entry activity to create the document and use a VB .NET or C# script to write token text to the doc. e.g.:

using (DocumentInfo doc = Document.GetDocumentInfo((int)GetTokenValue("CreateEntry_OutputEntry_ID"), this.RASession))
{
	doc.AppendPage();
	PageInfo PI = doc.GetPageInfo(1);
	PI.WriteTextPagePart("Text"); //You can use GetTokenValue...ToString() here to insert your text from tokens
	PI.Save();
}

 

2 0
replied on February 14, 2018

Thanks Tri,

 

is there a way to do it with actitivies in Workflow ? I know I can do token substitution with a word template type document.

0 0
replied on February 14, 2018

Not with any of the prepackaged activities that come with Workflow. You'll need to use the SDK Script activity for my example.

1 0
replied on February 14, 2018

Yes that works..  just cut n paste for now. I see the text appears in the Text part of the entry. If I want it to appear in a PDF, what all would be involved ?

 

thanks again.. I've never used the script part, and it seems not to bad.. so far

0 0

Replies

You are not allowed to reply in this post.
You are not allowed to follow up in this post.

Sign in to reply to this post.