This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
|
bw2:file_reader_tool [2023/12/18 11:43] wgates [Delimited Files] |
bw2:file_reader_tool [2024/09/24 15:51] (current) dlee [FileReader Tool] |
||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ====== Introduction (File Reader v2) ====== | ||
| - | This page describes the use of the “File Reader” tool in Bizweaver. Information regarding the associated File Operations and File Writer tools is found in separate documents. | ||
| - | ===== Special Note ===== | + | ====== File Reader Tool ====== |
| - | + | ||
| - | <WRAP center round important> | + | |
| - | Beginning in Bizweaver v2.0.170, two File Reader | + | |
| - | </ | + | |
| - | + | ||
| - | ====== FileReader | + | |
| The **File Reader** tool is used to read data from “flat” delimited files and “structured” formats such as XML, JSON, Microsoft Excel. Plain text can also be read with “text reader” as a single string. | The **File Reader** tool is used to read data from “flat” delimited files and “structured” formats such as XML, JSON, Microsoft Excel. Plain text can also be read with “text reader” as a single string. | ||
| Line 88: | Line 80: | ||
| {{ : | {{ : | ||
| - | |||
| - | If the input structure is complex, you may need to use multiple FileReader steps (with a common input) to get all the data elements you need. Also note that you might see multiple parent objects for each child object selected, you'll need to filter these out. If you introduce a new fileReader2 in a loop to parse another child object, you'll need to make sure you're only taking the correct objects because all are returned reqardless of outer-loop iteration. | ||
| - | |||
| - | {{ : | ||
| - | |||
| - | Loop through the JSON orders. | ||
| - | |||
| - | {{ : | ||
| - | |||
| - | Read the line_items | ||
| - | |||
| - | {{ : | ||
| - | |||
| - | You're now looping through every orders line items and must decide which line items to process. | ||
| - | |||
| - | {{ : | ||
| =====Specify Joining Character===== | =====Specify Joining Character===== | ||
| Line 169: | Line 145: | ||
| |Target File Name |“File” name as defined in a File Writer action | |Target File Name |“File” name as defined in a File Writer action | ||
| + | ---- | ||
| + | **[[bizweaver: | ||