Attachment - how to access properties

cancel
Showing results for 
Search instead for 
Did you mean: 
mrahn
Active Member II

Re: Attachment - how to access properties

Jump to solution

Thank you Ciju!

Your solution works and does exactly what my use case requires!

Best regards

Marco

.. I'm still interested to learn how to address the file object type, e.g. to get all file names attached

cjose
Senior Member II

Re: Attachment - how to access properties

Jump to solution

Hi Marco,

Good to know that it helped!

To get other attributes of the file object on the UI side, you can inspect the field value by logging the field value to console (console.log(<your-field.value>)) and access it using java script.

However if you want to extract the file attributes on the server side, use the relatedContentService bean in your custom java code or script.

Ciju