How can I set the createdfrom field on a new Purch...
# ask-stanley-ai
r
How can I set the createdfrom field on a new Purchase Order that I'm creating from a Sales Order through script?
c
AI generated answer (using internal Slack threads):
Based on the conversations, it appears that you cannot directly set the native
createdfrom
field on a Purchase Order (PO) that you're creating from a Sales Order through a script. However, you can create a custom field to establish the link between the Sales Order and the Purchase Order. Here's a general approach: 1. Create a custom field of type
list/record
with
record type = transaction
on the Purchase Order. This field will serve as your custom
createdfrom
field. 2. Use a workflow or a script to set the value of this custom field when the Purchase Order is created. The value should be the internal ID of the Sales Order from which the Purchase Order is created. Please note that this approach requires you to have the necessary permissions to create custom fields and workflows or scripts in NetSuite. ****** Disclaimer: This response was generated by an artificial intelligence assistant based on previous conversations from multiple Slack channels, and may contain inaccuracies or mistakes. ******
Slack thread 1: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.855669856
Slack thread 2: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.854970157
Slack thread 3: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.845871806
Please provide your feedback on this answer.