add multiple subsidiaries in rest api create locat...
# ask-stanley-ai
l
add multiple subsidiaries in rest api create location request
c
AI generated answer (using internal Slack threads):
Based on the conversations, it appears that you cannot directly associate multiple subsidiaries with a single location in NetSuite via the REST API. Locations are subsidiary-specific as they are a financial segment. If multiple subsidiaries share the same location, you would need to create separate location entries for each subsidiary. Here is a sample of how you might set a subsidiary in a location request:
Copy code
json
{
  "subsidiary": {
    "items": [{ "id": "2" }]
  }
}
However, this will only set one subsidiary. If you need to associate the location with multiple subsidiaries, you would need to create separate location entries for each subsidiary. ****** 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.874280632
Slack thread 2: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.853485882
Slack thread 3: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.837963581
Please provide your feedback on this answer.