Reputation: 73
How to get all the supported record types in NetSuite using SuiteTalk?
Description: I need a list of all the record types(Objects)supported in a netsuite account. I am trying to integrate netsuite and another tool using java.
The operations supported as per the WSDL file, do not have any provision to fetch all record types.
Upvotes: 5
Views: 8765
Reputation: 128
NetSuite it's on the version 2015.1 right now, and probably soon will upgrade to 15.2.
This is the last version of the Record Browser, probably don't work for what you are trying to do if you want to get all the records as an object to "for" on them, but you can try to read this records.
https://system.netsuite.com/help/helpcenter/en_US/srbrowser/Browser2015_1/script/record/account.html
Upvotes: 1
Reputation: 3979
I answered this on another question and thought I would update it here as well...
I stumbled upon this question with the same issue as
<platformCore:message>The getAll record type is required.</platformCore:message>
Figured I would come post a snippet of what a proper soap envelope should look like for this request. As others have mentioned, this call only supports certain record types...but once you identify the record type you desire, the below code should help.
<soap:Envelope xmlns:platformFaults="urn:faults_2014_1.platform.webservices.netsuite.com" xmlns:platformMsgs="urn:messages_2014_1.platform.webservices.netsuite.com" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:tns="urn:platform_2014_1.webservices.netsuite.com" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<soap:Header>
<passport>
<email>[email protected]</email>
<password>*******</password>
<account>AccountNumber</account>
<role internalId="3"/>
</passport>
</soap:Header>
<soap:Body>
<platformMsgs:getAll xmlns="urn:messages_2014_1.platform.webservices.netsuite.com" xmlns:platformMsgs="urn:messages_2014_1.platform.webservices.netsuite.com">
<platformMsgs:record recordType="currency"/>
</platformMsgs:getAll>
</soap:Body>
</soap:Envelope>
Also we are using the node-soap module to communicate with this web service and here is what it looks like from that perspective as well.
soap.createClient(this.url, function (err, client) {
client.addSoapHeader({
passport: {
email: '[email protected]',
password: 'pass',
account: 'Acct Number',
role: {
attributes: { internalId: 3 }
}
}
});
client.getAll({
"record": {
"attributes": {
"recordType": "currency"
}
}
}, callback);
});
});
Anyways I hope this helps others as it did stump me for awhile.
Upvotes: 3
Reputation: 33
Try https://system.netsuite.com/help/helpcenter/en_US/RecordsBrowser/2013_1/index.html for a list of all supported records and fields in each record.
Upvotes: 0