AddAttachmentFromResourcesReport

<< Fare clic per visualizzazione il sommario >>

Percorso:  API di piattaforma > JamioPlug > JamioPlug Document Automation >

AddAttachmentFromResourcesReport

Plug

PlugDocumentAutomation

 

Method

AddAttachmentFromResourcesReport

 

Description

Creates a report from one or more resources using one or more templates taken from Document components and adds it as an attachment to a resource. The target resource is automatically saved.

 

Input

Name

Description

Type

Optional

serverAddress

Server address for an external Domain (or "" for the current Domain)

String

Y

token

The session token (for the current session in the current Domain may be null or empty)

String

Y

resources

Input resources for report. Each element can be a reference to a resource or a dataset containing fields; each key corresponds to name assigned in templates

DataSet

 

templateDocument

Document resource containing template file components. Supported template types:

• doc

• dot

• docx

• dotx

• odt

• ott

• rtf

Reference

 

outputFormat

The format for output report (same format of the first template if not specified). Supported output formats:

• doc

• docx

• odt

• pdf

• rtf

• txt

String

Y

targetResource

Target resource for report attachment (first input resource if not specified)

Reference

Y

attachmentName

Name of attachment to create. If not specified: report.<outputFormat>

String

Y

Output

Name

Description

Type

Optional

returnValue

Reference to the attachment created

Reference