so i have a button that is a user script which fir...
# suitescript
s
so i have a button that is a user script which fires a client script, why is the record and record.id turning up undefined in the client script
c
How are you getting the record in the client function? I’ve had success with this code in the past:
Copy code
function Button()
{
	var objCurrentRecord = currentRec.get();
	console.log(objCurrentRecord.type + ' ' + objCurrentRecord.id);
}
where currentRec is the N/currentRecord library