Hi Team, 1. I want to pull a report via restlet. I...
# general
k
Hi Team, 1. I want to pull a report via restlet. I can able to pull saved search via restlet, but i am not able to find anything for reports. Need your help on this. Is there a way to do it? 2. Is there a way to export reports query via api or from netsuite ui?
s
It might be helpful to write using sql
Copy code
let SQL = ""
var mySuiteQLQuery = query.runSuiteQL(sql);
    let results = mySuiteQLQuery.results;
 return JSON.stringify(results);
k
Since the reports has complex filters and custom fields, I want to export the same as SQL. is there a way?
s
not sure
k
ok. thanks for the snippet. let me look at the documentation.