i need to include an if condition which should che...
# suitescript
v
i need to include an if condition which should check for the record type of "assemblyitem", how should i do this?
n
An if condition in which script type and under what condition?
v
in userevent script type, if its only assemblyitem, the script should trigger
n
You should be able to look at scriptContext.newRecord.type. Try outputting that to the script log.
v
how about to use it in client script?
n
Look at scriptContext.currentRecord
v
i used .type, but it did not return anything.
n
where in your client script? Depending what you're doing you may also need the N/currentrecord module.