i have 2 price level for each subsidiary and i wan...
# ask-stanley-ai
y
i have 2 price level for each subsidiary and i want to set the price based on subsidiary
c
AI generated answer (using internal Slack threads):
To set different price levels for each subsidiary in NetSuite, you can create a custom field on the subsidiary record and store the price levels in that field. This way, you can pull the prices from that field based on the subsidiary. Here's a high-level approach on how you can do this: 1. Create a custom field on the Subsidiary record to store the price level. This can be done by navigating to
Customization > Lists, Records, & Fields > Subsidiary Fields > New
. 2. Populate this custom field with the appropriate price level for each subsidiary. 3. When setting the price for an item, you can pull the price level from the subsidiary's custom field. This can be done via a script or a workflow. If you're using a script, you can use SuiteScript's
record
module to load the subsidiary record and get the value of the custom field. If you're using a workflow, you can use the
Field : Source From
action to get the value of the custom field. Here's a pseudo-code example of how you can do this in a script:
Copy code
javascript
var subsidiaryId = record.getValue('subsidiary');
var subsidiaryRecord = record.load({
    type: record.Type.SUBSIDIARY,
    id: subsidiaryId
});
var priceLevel = subsidiaryRecord.getValue('cust_field');
Please note that this is a high-level approach and the actual implementation may vary based on your specific requirements and NetSuite setup. ****** 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.874324679
Slack thread 2: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.863436818
Slack thread 3: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.823147833
Please provide your feedback on this answer.