Hi Guys, How can i get the purchaseorder link whil...
# suitescript
m
Hi Guys, How can i get the purchaseorder link while saving vendor bill
Copy code
efine(['N/search', 'N/currentRecord', 'N/ui/dialog'], function (search, currentRecord, dialog) {
	return {
		saveRecord: function (context) {			
				var currentRecord = context.currentRecord;
				var sublist = currentRecord.getSublistValue({ sublistId: 'purchaseorders', fieldId:'id' });
		}
b
You should start at the item sublist, and look at the orderdoc column
m
got it
I can see purchaseorders sublist there but i don't know how to get this object
b
have you identified the type of the sublist?
not all sublist types support suitescript
m
can I get this object?
b
should be pretty easy to try