Aviva Wilen
06/01/2026, 9:16 AMCeligo AI
06/01/2026, 9:16 AMAI generated answer (using internal Slack threads):To automate the intercompany sales order management via API, you can follow these steps: 1. Create the Sales Order in the target subsidiary: You can use the
record.create() function in SuiteScript to create a new sales order. You will need to set the necessary fields such as subsidiary, customer, items, etc.
2. Set the "Paired Intercompany Transaction" field: After creating the sales order, you need to set the "Paired Intercompany Transaction" field on both the Purchase Order and Sales Order. This will allow the Intercompany functionality to work as intended.
3. Duplicate the Sales Order: If you need to create a duplicate of the sales order, you can use the record.copy() function in SuiteScript. This will create a new sales order with the same details as the original.
4. Replicate the data: If you need to replicate the transaction data for analysis, you can use the SuiteTalk API to pull the data. However, keep in mind that this can be slow if you have a large number of records. You can use the getDeleted operation to get information on deleted transactions.
5. Use SuiteQL via REST API: If you need to pull all transactions, you can use SuiteQL via the REST API. This will allow you to pull all transaction types, unlike SOAP which only supports certain transaction types.
Remember to test your code thoroughly to ensure it works as expected.
******
Disclaimer:
This response was generated by an artificial intelligence assistant based on previous conversations from multiple Slack channels, and may contain inaccuracies or mistakes.
******Celigo AI
06/01/2026, 9:16 AMSlack thread 1: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.82824713
Slack thread 2: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.817260742
Slack thread 3: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.813324
Celigo AI
06/01/2026, 9:16 AM