require(['N/record'],function(record){
var invTransRecord = record.create({
	 	                type: 'inventorytransfer',
	 	                isDynamic: true,
	 	            });
invTransRecord.setValue({fieldId : 'trandate', value: new Date()});
invTransRecord.setValue({fieldId : 'customform', value: 105});
    		
    		
    		//invTransRecord.setValue({fieldId : 'postingperiod', value: '123'});
    		invTransRecord.setValue({fieldId : 'location', value: '6'});
    		invTransRecord.setValue({fieldId : 'inventorylocation', value: 7});
   invTransRecord.selectLine({
                     sublistId: 'inventory',
line:0
                 });
    			 invTransRecord.setCurrentSublistValue({
                   sublistId: 'inventory',
                   fieldId: 'item',
                   value: 5935})
    			 invTransRecord.setCurrentSublistValue({
                   sublistId: 'inventory',
                   fieldId: 'adjustqtyby',
                   value: '1'
               });
    			 invTransRecord.commitLine({
                 	sublistId: 'inventory',
               });
console.log(invTransRecord);
 var invRecordId = invTransRecord.save({
             	enableSourcing: true,
             	ignoreMandatoryFields: true
 			});
console.log(invRecordId);
});