how to track external Id changes
# ask-stanley-ai
n
how to track external Id changes
c
AI generated answer (using internal Slack threads):
In NetSuite, the
externalId
of a record can indeed be changed after the record has been created. This can be done through scripting or via the REST API. If you're using SuiteScript, you can use the
setValue
method to set a new
externalId
for a record. Here's a simple example:
Copy code
javascript
record.setValue('externalid', 'newExternalId');
Please note that there are certain contexts where you cannot set the
externalId
, such as in a User Event Script before the submit entry point. If you're using the REST API, you can make a POST request to update the
externalId
of a record. However, the specifics of this request will depend on the type of record you're updating and the structure of your API. Remember to always test your changes in a sandbox environment before applying them to your live system. ****** 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.820984
Slack thread 2: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.810119689
Slack thread 3: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.806884825
Please provide your feedback on this answer.