Discussions
Stay up-to-date with the latest news from NetSuite. You’ll be in the know about how to connect with peers and take your business to new heights at our virtual, in-person, on demand events, and much more.
New AI Community Guidelines. Please review and follow them to ensure AI use stays safe, accurate, and compliant.
RecordType for Department and Location
Hi folks,
I am a bit confused as to what static reference to use in a SalesOrder for the setDepartment and setLocation RecordTypes. The RecordType object doesnt have a specific department or location type.
In the DTD the departmentRef and locationRef are defined by;
[INDENT]<!ELEMENT departmentRef (%HierarchicalNameType;)>
<!ELEMENT locationRef (%HierarchicalNameType;)>[/INDENT]
does this mean I should set the RecordType for the department and location as;
[INDENT]so.setDepartment(new RecordRef("1",RecordType.salesOrder));
so.setLocation(new RecordRef("2",RecordType.salesOrder));[/INDENT]
where so is the reference to a SalesOrder object.
Cameron Riley
0