Similar strategy but you can only list one thing about each file so take out the end of the line starting with “AS” and replace TABLE with LIST.
Note: if you did the rename above you would just get a list of many copies of the word Link, but all linking to different places.
Maybe instead your userDefinedField has values that are strings of text and you want that as the display text? Are you using FROM or WHERE to filter files such that you know userDefinedField will always be there and always be a string of text?
LIST WITHOUT ID link(file.path, string(userDefinedField))
FROM ...
Wrapping the value in string( ) is not necessary if you know your field’s value is always a string of text (and not a list or something) so I just put that there out of my own personal preference.
This will do. I wanted to list the hyperlink with edited text, and the userDefinedField, but bundling the userDefinedField into the hyperlink is acceptable. Near enough is good enough in this case.