Hello!
Am currently have a tool that post files to the designated FTP servers. Currently I have a bunch of downstream process that requires me to post result files after my daily data processing. Here is the thing, I would like to build a single tool that can be used anywhere in my workflows to post a file. Currently as the Download can be fed with target URL, it doesn't have a way to pass Credentials details in the input stream. So i had to manually configure the credentials for the download tool every time for different servers and it becomes a mundane job.
Idea: The tool require inputs as - source file, target FTP server URL, Credentials and of course the BLOB file as payload.
Thought Process: So if am getting these fields as a single record (shown below) from a previous process, the tool should be able to update the values USERNAME and PASSWORD depending on the stream and process the request.
Trouble: When am able to directly mention the credentials in the Download tool, it works but when I expect it to be updated via the control parameter its not working and throws an error as below. The FTP sites that am using are working fine and I have a macro that helps to post it via the regular way.
Am new to building macros and it would be really helpful to point out my mistakes if any.
Workflow:

input macro Config:
