Hello @clouddataquest - Welcome to MS Q&A, and thanks for posting here!
Could you share a screenshot of your Logic Apps workflow? Be sure to omit any private information from the screenshot. If I understand correctly, you have an existing workflow which transfers .txt
files from one folder to another (these are Log Files that contain logs as content), and during this flow, you want to add another step which overwrites the log content with name of file being transferred?
For locating and using file names, i’m not sure which exact Connector you’re using (there are many file related ones: Files, FTP, SFTP, BLOB etc..) but for example, in the case of the FTP Connector, the file name should become available from the Get file metadata action.
In the case of File System connector, it also has: Get file metadata action.