TLDR:
Is it possible to configure the SFTP output in the Infor M3 IMS-connector so that the file name is built dynamically from the XML content? For example, instead of a static pattern like 'Name_[current_datetime].xml', can we generate a file name in the format '[Test_Value2_CIF]_[current_datetime].xml', where 'Test_Value2_CIF' is extracted from the XML output?
So this is our use case.
We received a xml file in a SFTP, when the file is received this trigger an agreement (created in MEC Mapper).
In the "processed" section of the agreement I chose "XML Transform" and then "Send".
When the file is received in the Infor m3 IMS-connector, we sent it to a SFTP, here we can choose the "File Name Pattern", and we need to adjust the name according some variables defined within the Agreement Code e.g [Test_Value2_CIF]_[current_datetime].xml
So far we were only able to do somethine like this Name_[current_datetime].xml
This is the workflow→
1.I have created an Agreement using MEC mapper.
2.I have created Object schemas.
3. I have created DataFlows for this matter.
4.I have created two Connection Point in order to send a file from a SFTP to Infor M3 IMS-connector and sent a file from Infor M3 IMS connector to a SFTP
This is a sample content I sent from M3 to SFTP→
<?xml version="1.0" encoding="UTF-8"?><Test xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<Value1 Ref="XXXXXX"/>
<Value2 CIF="XXXXXXX" />
<Client ClientID="9999"/>
<Value3>
<Val3 CustomerID="1020" />
</Value3>
<Value4>
<Val4 PORef="23232323"/>
</Value4>
<Value5>
<Val5 SupplierSKU="XXXXXXXXXX" UP="2.9" Total="14.5"/>
</Value5>
<Value6>
<Val6 Type="IVA" Rate="4" Base="9999" Amount="9999"/>
</Value6>
<Val7 Total="9999" Tax="99" SubTotal="9999"/>
</Test>