Marc
04/22/2025, 9:57 PMCeligo AI
04/22/2025, 9:57 PMAI generated answer (using internal Slack threads):To create an intercompany sales order before a purchase order in NetSuite, you would typically follow these steps: 1. Create an Intercompany Purchase Order (ICPO) first. This is a requirement in NetSuite for creating an Intercompany Sales Order (ICSO). 2. Once the ICPO is created, you can then transform this into a Sales Order. 3. Pair the Sales Order with the ICPO through the "intercompany" field. However, it seems like you're encountering an issue when trying to create the sales order via SuiteScript and referencing the PO, receiving an "invalid reference value for intercotransaction" error. This error typically occurs when the reference value provided does not match any existing records in the system. Unfortunately, setting 'intercotransaction' won't work as it's always blank. This is because the 'intercotransaction' field is a system-generated field that gets populated when an intercompany transaction is created manually in the UI. If you're desperate, you could try using the default values that are used when manually creating an intercompany sales order (ictran and entity). However, this is not a recommended approach as it may not work consistently or may stop working in the future. As an alternative, you could consider transforming the PO to SO, if that's an option in your case. ****** 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
04/22/2025, 9:57 PMSlack thread 1: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.845614135
Slack thread 2: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.835733354
Slack thread 3: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.832500815
Celigo AI
04/22/2025, 9:57 PM