How to use Netsuite workbook using script?
Hi, In this post we are going to learn accessing workbook in script . We already cover Data Set and Workbook in our previous post, click on this link to read . To use workbook in script, you should use " N/query " module. We can query Workbook using Query APIs . Lets go to step by step process of using Query Module Step 1: Script should use " N/query " module and use query as parameter ( You can use parameter name as you like) . Step 2: Copy workbook internal id. Step 3: Use "query.load" api and use internal id from step 2. var mLoadedquery= query.load({ id: 'custworkbook_your_id_here' }); Step 4: Run loaded query var resultSet = mLoadedquery.run(); Step 5: Access workbook column data in script. You can either iterator using iterator() or use for loo...