do ``` var recordId = rec.id; ``` and you are miss...
# suitescript
j
do
Copy code
var recordId = rec.id;
and you are missing variable declarations for recordType and isDynamic
b
Curious - If i'm able to get the record id, does it matter which way it's done?
Because the
rec.getValue('id');
gets the Id fine
j
If it gets it fine then there it is not an issue. I just know that the "official" way to get it is through the rec.id property