how to get the name of the employee that created a...
# ask-stanley-ai
n
how to get the name of the employee that created a record in netsuite suitescript
c
AI generated answer (using internal Slack threads):
To get the name of the employee that created a record in NetSuite SuiteScript, you can use the
getText
method on the record. The
getText
method returns the display name (text) of the select field instead of the internal ID. Here is how you can do it:
Copy code
javascript
var createdBy = newRecord.getText('recordcreatedby');
In this case, 'recordcreatedby' is the field id of the 'Created By' field on the record. The
getText
method will return the name of the employee who created the record. ****** 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.824983537
Slack thread 2: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.813501775
Slack thread 3: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.811484933
Please provide your feedback on this answer.