Hi All, How can I do a resolveURL for a file in th...
# suitescript
r
Hi All, How can I do a resolveURL for a file in the file cabinet If i have the fild ID . I need to put a link on a a suitelet (1.0) TIA?
b
resolveURL is usually for things like records
you can try using nlapiLookupField('file', internalid, 'url')
✔️ 1
r
Ok will try that now
l
I've tried that and ended up actually loading the file record.
Copy code
const fileRecord = {type: 'file', id: 123456}
const filePath = record(fileRecord).path
r
@lavi Can we use const in NS? i thought that was ES6?