I am working on mule flow where I need to read a properties file which will have a multiple organizations FTP endpoints. Whenever a flow starts, it should iterate over the property file and start consuming data from different FTP endpoints. Sample property file:
organizations:
OrgA:
FTPEndpoint: sftp://{orgAUser}:{password}@{hostA}:22/incoming/test
OrgB:
FTPEndpoint: sftp://{orgBUser}:{password}@{hostB}:22/incoming/test
I want to understand how to iterate over a yaml property file? Some code snippet would be appreciated. Also, I read in mulesoft document that you cannot put inbound endpoint in foreach loop. If this is the case then how can we achieve this?
Thanks & Regards, Vikas Gite