Any one have any experience using SuiteScript to g...
# suitescript
a
Any one have any experience using SuiteScript to generate an Intercompany Sales Order? To my knowledge the Manage Intercompany Sales Order Page (native) is not scriptable. Nor can I create a standalone Sales Order and add the PO to the Paired Intercompany Transaction Field. https://XXXXXX.app.netsuite.com/app/accounting/transactions/interco/salesordqueue.nl?whence= My users keep forgetting to add the location on the Manage Intercompany Sales Order Page
b
pay extra attention to the query parameters in the url of the sales order, they are default values that you will have to set when you create the sales order
a
It looks like this link just is showing me the Manage Intercompany Sales Orders Page.
b
and the steps to manually create the sales order
p
@battk: Same question here. Can you be less cryptic and more specific?
b
do you know how to manually create the paired intercompany sales order
instead of creating it through a bulk operation
p
Your link points at this article and is BULK operation in the background:
b
you will have to convice me you are capable of reading beyond the first step
p
Imagine if NS told you "Unexpected Error", convince me you can debug...
IC/SO is easily generated via the Manage Intercompany Sales Orders page. URL contains: app/accounting/bulkprocessing/bulkprocessingsoqueue.nl?searchtype=BulkProcSubmission&sortcol=BulkPssion_SEQMBER14_raw&sortdir=ASC&csv=HTML&OfficeXML=F&pdf=&size=1000&_csrf=<somehash>x=F&searchid=-730&submissionid=16530&type=ICORDER_SO_GENERATION --- What URL params did you have in mind?
b
the bulk processing queue is useless to you
suitescript has very limited support there
you want to manually create the sales order
p
Not helping. Decide if you talk about bulk processing via your link or manual SO creation.
b
the manual step to create the sales order is from the bulk processing page
p
Done. Where to locate the mystical params?
b
whats the url of the sales order?
p
app/accounting/transactions/salesord.nl?id=6680366
b
that doesnt look right, thats the url to edit a sales order
you want the url that netsuite generates to manually create a intercompany sales order
which is accessible from the
Manage Intercompany Sales Orders
page
p
Where to find that link?
b
that purchase order looks inelgible for manual sales order creation
go make a purchase order with non inventory item that can be fulfilled/receive
the warning on the help page about that seems to have disappeared
p
Despite you being polite like an asshole we found out the catch: IC SO can be generated via SuiteScript and REST API. However, this is limited to transactions with non-inventory items only. Thank you.
b
that was the official answer, though the documentation seems to be missing the non-inventory item part
however, if you tried out the default values in script, you would find out that it doesnt actually have that restriction
though the sourcing on script object behave weirdly