Iām trying to read the file name of a file so I can write it in an email within a Workflow. Iām using the āOperate On Fileā task. The Operation I selected is āINFOā. I then point to the Source File. Next Iām trying to determine which variable I use to supply to the Send Email task.
The Operate On File Documentation says you can use task variables and the example they give is ānameā, ālocalNameā, āsizeā, and ātimestampā. When I try using these variables in the Send Email task they just come across as blank in the email (variables appear to be null). Here is the body of the email Iām using:
Name = ${name}
localName = ${localName}
Two questions:
- Does any one happen to know what Iām doing wrong in above?
- Additionally is there a way to pull out a file name within a Plan. Iām using the āExcel File Readerā step. I want to pass along the file name in the flow so I can use it later on.
Thanks!