<@U0290MVCVPC> I am not sure if `record.Type.UserE...
# suitescript
m
@Slig I am not sure if
record.Type.UserEventType
is correct or not, I think it would be undefined. Also, why do you expect if the record is blocked, the value of the record will be
Blocked
?
s
this is a good example where TS helps - it would prevent you from referring to enumeration values that don't exist.
s
@stalbert I did not understand. Can you explain me?
m
@Slig
record.Type
doesn't have a field called
UserEventType
😄 1