Hello, does anyone one which record.Type enum repr...
# general
l
Hello, does anyone one which record.Type enum represents 'file'? I can't find it on the list for some reason:
app/help/helpcenter.nl?fid=section_4273205732.html
b
wrong module, use the N/file Module
l
Hm, I think it won't work in my case. I want to attach file to a record. Following given example, I wanted to use enum/constant for record type:
Copy code
var id = record.attach({
    record: {
        type: 'file',
        id: '200'
    },
    to: {
        type: 'customer',
        id: '90'
    }
});
b
There is no type for file in the record module
💯 1
s
The word
file
is what you use instead of the record.Type enum when attaching a file to a record