From file to workflow variable

From file to workflow variable

With the advanced utilities workflow component, From file to workflow variable you can extract the contents of a file in the file system and put that into the contents of a variable. A related component is: Resource to workflow variable.

 

This can e.g. be used to retrieve the contents of an XML file into a variable and the workflow can then insert the contents of the variable into another XML file with a transformation.

The From file to variable component has these parameters:



  1. File path
    The path to the file from which the contents is to be copied.
  2. Variable name
    The name of the workflow variable in which the file contents is to be written to.
    • Related Articles

    • From variable to file

      With the advanced, utilities workflow component, From variable to file you can save the contents of a variable as a file. The parameters are: Variable name The name of the variable, that should be saved into a file. Decode base64 If the data in the ...
    • 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 ...
    • Resource to workflow variable

      With the workflow component, Resource to workflow variable (which is a shortcut component of the other category), you can read a resource from the library and store it in a workflow variable. A related component is: From file to workflow variable. ...
    • Windows Share to variable

      The advanced, utilities workflow component, Windows Share to variable reads an input file from a Windows Share into the payload of the current workflow. The workflow component has these parameters: Variable name The name of the variable Share The ...
    • Variable to Windows Share

      The advanced, utilities workflow component, Variable to Windows Share is able to write a file into a shared folder, where the contents of the file is the value stored in a workflow variable. The workflow component has these parameters: Variable name ...