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

  1. 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.
  2. Output type
    Specification of the file type, that is loaded into the payload. In this example we expect an XML file.
    • Related Articles

    • Windows Share file to payload

      The advanced, utilities workflow component, Windows Share file to payload reads a file from a Windows Share and loads it into the payload of the current workflow. The workflow component has these parameters: Share The Windows Share connection used ...
    • 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 ...