Greetings all,
At present, I am engaged in working with an FTP system. While I am able to write to the FTP environment, I am facing difficulty in retrieving a list of files located in a particular directory through the use of the “FileSystem: listing subscriber”.
Could you please let us know what kind of difficulties you are facing?
In order to subscribe to the list of files within a particular directory, you can define the pattern of the files within the directory. For example, if you want to subscribe to a list of XML files within a directory named “files”, you can define the pattern as files/*.xml.
It will create a number of tasks (depending on how many files match the pattern within the directory), with each entity having the below properties.
i was able to understand how it works, now i have an issue.
The object shown in the image is the one that transported the outcome of my FTP file retrieval. My challenge lies in parsing the XML value of the root object, which has a dynamic name such as "Alumio-Genesis/ASN_#dev1017-A " or "Alumio-Genesis/ASN_#dev1018-A ". This makes it difficult to map the values and convert the child object (XML) to JSON
Hello everyone. I was able to find a solution. Specifically, I utilized the value setter to gather all responses and store them in a new object named “test”. Then, I used the node transformer to iterate through all child objects of the “test” object by applying the pattern “test. *”. Please refer to the image below for a visual representation.