> In the transactions there is a Sales Effectiv...
# ask-stanley-ai
j
In the transactions there is a Sales Effective Date field (Field ID: saleseffectivedate) but when validating in Netsuite2.com in the transaction table this field is not available.
Where is this field in the database or how can I access it?
c
AI generated answer (using internal Slack threads):
The Sales Effective Date field (Field ID: saleseffectivedate) is not directly available in the transaction table in NetSuite. However, you can access it through SuiteScript or SuiteTalk API. In SuiteScript, you can use the
record.getFieldValue
method to get the value of the Sales Effective Date field. Here is an example:
Copy code
javascript
var record = nlapiLoadRecord('salesorder', 'internalid');
var saleseffectivedate = record.getFieldValue('saleseffectivedate');
In SuiteTalk API, you can use the
get
operation to retrieve a record and then access the Sales Effective Date field. Here is an example:
Copy code
xml
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:urn="urn:messages_2015_1.platform.webservices.netsuite.com" xmlns:urn1="urn:core_2015_1.platform.webservices.netsuite.com">
   <soapenv:Header>
      <urn:tokenPassport>
         <!--You will need to insert your own tokenPassport elements here-->
      </urn:tokenPassport>
   </soapenv:Header>
   <soapenv:Body>
      <urn:get>
         <urn:baseRef xsi:type="urn1:RecordRef" internalId="internalid" type="salesOrder"/>
      </urn:get>
   </soapenv:Body>
</soapenv:Envelope>
After you retrieve the record, you can access the Sales Effective Date field like this:
Copy code
javascript
var saleseffectivedate = result.record.saleseffectivedate;
****** 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.833031416
Slack thread 2: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.819129109
Slack thread 3: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.815300763
Please provide your feedback on this answer.