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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.