I'm trying get a csv attachment then get values. I found the script below on this forum, but I give this error when I try run:
Someone help me to fix it?
Can you please try filename (with lowercase 'n')?
def filename = attachment.filename
I keep searching and the correct should be attachment.getFilename()
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Both will work,
Groovy accepts class.propertyname as well as class.getPropertyname()
here the property name is filename, not fileName. In your attached image it was fileName which would give a compiler error.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.