2
Configure ION to understand the CSV file layout
Login to Infor OS Portal. After you have logged in, click the ION tab or select the ION security card located on the main page.
Click the Menu icon then expand the Connect option, click the File Templates item, and click the (+) Add option.
In the configuration section, you’ll need to specify a Name for the file template and have the option to include a Description. You also need to define the File Type (text or binary), File Encoding (such as UTF-8 or ISO8859-1), and the Format Type (Delimited, Fixed-Length, Fixed-Length & Delimited, Full BOD, or XML).
For further information on the meaning of these settings, please consult the File Template properties documentation.
In the Settings tab, you have to provide the BOD name in the Document field, the field separator, and the line separator of your file. There is another property named Generated document that can be (single, or multiple).
In this example we are using the following Settings values:
In the Fields tab, Click the (+) button to define the structure of the BOD giving the name for the XML TAG. Notice that the FieldName can be optional, this means that in the file you can skip the value for the fields you have selected as optional. Click Save.
After saving the configuration the GENERATED METADATA option will be available and will click on that to create the custom BOD.
Create a CSV document file with the Field information you configured above, supply Header and Detailed information.
Save the file in a CSV format (DocumentID.csv).
Click the GENERATE METDATA button.
Click the UPLOAD button.
Click on the browse folder icon, select the DocumentID.csv file you just created. Click Ok.
Sample File Content will be displayed, click Ok.
Expand the CVS_Person folder and change the Field Names to the correct values, click on the ID field and click Ok.
You should get a “Document metadata generation is successful” message, click Ok.
At this stage, we have generated the custom BOD that can receive the CSV file using the File template.
Let’s test, reading a CSV file and checking the BOD.
To do this we need to create 2 Connection Points of type File Connection Point and one Document Flow that uses them for the integration.