I'm trying to use a scripting field to truncate a particular field that's stored.
Unfortunately, when i try to access this field in the scripting fields section, it returns the error "No field found for [field_name] in mapping with types.
I can access other values of the doc by doing:
But i want to access a field which is user_data.FilePath
doc['user_data.FilePath'].value or even just doc['user_data'].value throws the same error as above.
Anyone point me in the right direction? Docs on painless scripting and some areas are a little light