I am developing a UI extension to display the actual image for files uploaded to an object as an attachment so the user does not have to click on them.
They are in a field with the file type, and when I get the properties using fetchProperties I'm given back a semicolon delimited string of the IDs of the attachment without any additional metadata:
176712404652;176712183988
That works fine as I can preview the image using the object ID as a reference, but I'd like to also display the file name in my card similar to how it is shown in the native UI.
Is that possible without making an API call to look up the name of the file?
@AMichaels - I belive the key is to use the file ID to obtain the details of the object using the API call https://api.hubapi.com/files/v3/files/{fileId}. I don't think there is any way to de-reference the object ID without an API call.
@AMichaels - I belive the key is to use the file ID to obtain the details of the object using the API call https://api.hubapi.com/files/v3/files/{fileId}. I don't think there is any way to de-reference the object ID without an API call.