I need to add variables to the file name in the connection point from a BOD , while writing the file ?
Please check out this thread. I had the same requirement and was able to use the headers to do what I needed.
community.infor.com/.../setting-filename-based-on-custom-bod----but-not-exported-field
Hi Lamis,
There is a pre-defined list of variables available to use for file name in write scenario.
press CTRL and SPACE BAR together in the File Name Pattern text box to get this list.
if you are looking to use other the data values from BOD in file name then it is not possible.
yes, I want to use data values from BOD not the ones in the standard list.
@m-richard Did you try this before ?
I got this error while testing the scriptscripting.Traceback (most recent call last): File "script", line 9, in <module> AttributeError: 'NoneType' object has no attribute 'text'
Here is a recent post on custom headers as well.
community.infor.com/.../83325
Hello Lamis,
Several ways to do this.
1) If you are using a custom BOD, you can add attributes in your file template in ION Desk and fill them with the required data inside your IEC mapping. This way, you can choose whatever data you need for this purpose
For example, consider attribute FileName (default value proposed by Infor) to dynamically build the value of this attribute in your IEC mapping then choose CTRL+SPACE + [OriginalFileName] in the connection point
2) As Ed and Kevin said, use a python script to add a custom header to your BOD in your data flow. This solution requires you to parse your incoming XML file in the script and build the new output header value accordingly.