using ${variableName:attributeName} in the body of an email

If you have a new question you’d like our support staff to post a response to, please visit our customer community, Data Security Insiders, to pose the question in our Discussion Boards. We have a thread “Ask Our Tech Experts” that our support team monitors on a regular basis, or you can start a new discussion where other GoAnywhere users and support staff can weigh in. Log in or create your new account at

If you need an immediate response, please create a support ticket or contact our support team by email at [email protected].
2 posts Page 1 of 1


Posts: 8
Joined: Fri Feb 24, 2017 9:40 am

Post by fthomas » Fri Sep 07, 2018 4:32 pm
I have an email that I am trying to list the names of the files in a file list variable. When I use ${filelist:name} it errors with: Method 'getName' or 'isName' not found on class 'com.linoma.dpa.util.FileList'. Original expression: retfiles:name.

Is this not acceptable in the body of an email?



User avatar
Support Specialist
Posts: 91
Joined: Thu Mar 05, 2009 3:49 pm
Location: Ashland, NE USA

Post by Support_Julie » Mon Sep 10, 2018 10:00 am
You can use the file list variable in the email message body without the file attribute (name). That will give you a list of the files that include the folder path.

If you do not want the path information, then you can create a temporary print file.

You would need to do a For Each loop thru the file list.
Using the PRINT task, write the file name to a temporary file: ${retfiles:name}${system.lineFeed}

Then using that temporary file, Add a File to the message body.

for example:
<forEachLoop itemsVariable="${retfiles}" currentItemVariable="CurrentItem">
<print file="${system.job.workspace}TempFile.txt" version="1.0">
<sendEmail resourceId="HelpSystem" toList="[email protected]" keyLocation="KeyVault" version="2.0">
<from address="[email protected]" keyLocation="KeyVault" />
<message file="${system.job.workspace}TempFile.txt" />
Julie Rosenbaum
Sr Support Analyst
e. [email protected]
p. 1.800.949.4696
2 posts Page 1 of 1