Calculated filenames
We can also configure the integration to name the file or target folder based on the integration payload. Within a mapping view, you will be able to see an entry called OutboundFTPHeaderType, within this are elements called fileName and directory. By manipulating these values, we can dynamically set the filename and location of the output.
For example, if we are going to set the filename to be the test Id followed by the actual Id element from the source and set to be a .txt file, we can get a result such as Id9001.txt for a file. To do this we need to concatenate the literal values with Id element from the source. Click on the value filename on the target side of the tree to access the Build Mappings screen. Once in the
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access