via netsuite rest api i want to create a purchase ...
# ask-stanley-ai
y
via netsuite rest api i want to create a purchase order with related line items is there a way to set the line item expected receipt date?
c
AI generated answer (using internal Slack threads):
Based on the conversations, it appears that setting the expected receipt date directly on the line level of a Sales Order that will be transformed to a Purchase Order (PO) is not possible. There is no sourcing relationship that allows this field to be transferred from the Sales Order to the PO. However, you can potentially create a script to copy the expected receipt date field from the Sales Order to the PO after it has been created. This would involve using the NetSuite SuiteScript API to access and modify the fields of the created PO. Please note that this approach would require a good understanding of SuiteScript and the NetSuite API. You would need to ensure that the script is triggered at the appropriate time (i.e., after the PO is created) and that it correctly identifies and updates the expected receipt date field on the PO. ****** 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.863960683
Slack thread 2: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.841166496
Slack thread 3: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.834197819
Please provide your feedback on this answer.