From file to payload

From file to payload

It is possible to load a file from the local file system into the payload of the workflow. This will overwrite the contents of the payload, so you might consider to save the payload e.g. into a property or an attachment before you run this advanced utilities component called, From file to payload.

 

 

The component has these parameters:

 

NG2WorkflowFromFileToPayload01

 

File path

The path (including the file name) of the file, that you want to load into the payload. This can be a fixed text, but if you click the icon on the left, then you can use an XPath expression that e.g. use a variable like above. In the example above we load the file, Demo_Invoice.xml from the file system.

 

Output type

Specification of the file type, that is loaded into the payload. In this example we expect an XML file.

    • Related Articles

    • Payload to workflow variable

      The advanced, utilities workflow component, Payload to variable copies the current payload into a variable. This can e.g. be used, if you want to insert the payload into an output file via a variable in a transformation. The payload to workflow ...
    • Payload to attachment

      With the Payload to attachment component you can set the payload of the workflow to be the contents of the email attachment. The name of the attachment is set in the workflow component, Set attachment name, which you should insert first in the ...
    • Named property to payload

      This component can be used with the workflow component, Payload to named property. The named property to payload component retrieves a named property, that was previously saved with the Payload to property, into the payload. This can e.g. be used, if ...
    • Attachment to payload

      The workflow component, Attachment to payload takes a named attachment, removes it and inserts it as the current payload of the current workflow. This component is an advanced utilities component. The component has these parameters: Attachment name ...
    • Cut textual payload

      In rare situations an input file might be invalid because of extra header data (prior to the actual payload) or extra invalid data at the end of the input file. This can prevent InterFormNG2 from processing e.g. an otherwise valid XML file. So as an ...