Looking to do a search on opportunitys and return ...
# suitescript
n
Looking to do a search on opportunitys and return related attached files. I am not sure what column ID i should use in this case for the file id?
Copy code
var mySearch = search.create({
                    type: search.Type.OPPORTUNITY,
                    columns: ["internalid", "file.internalid"],
                    filters: [
                        ["internalid", "is", id]
                    ]
                });
b
make the saved search in the ui first, then load it in script so that you can inspect its columns and filters
n
Thanks @battk, another user gave me a nice chrome extension to handle it