erictgrubaugh
04/13/2020, 5:42 PM"Sales_order"
is not a valid type. Use the N/record.Type
enumeration for specifying typesSimon
04/13/2020, 5:50 PMSimon
04/13/2020, 5:50 PMSimon
04/13/2020, 5:50 PMSimon
04/13/2020, 5:50 PMSimon
04/13/2020, 5:51 PMerictgrubaugh
04/13/2020, 5:52 PM"Sales_order"
is not the same thing as record.Type.SALES_ORDER
Simon
04/13/2020, 5:53 PMerictgrubaugh
04/13/2020, 5:53 PMType
enumeration is not different than any other Object. You can alias its properties like you would any other.
var myObj = {
myProperty: {
nestedProperty = 7;
}
}
var seven = myObj.myProperty.nestedProperty;
erictgrubaugh
04/13/2020, 5:54 PMerictgrubaugh
04/13/2020, 5:54 PMvar thetype = record.Type.SALES_ORDER
erictgrubaugh
04/13/2020, 5:59 PMrecord.Type.SALES_ORDER
like log.debug({title: "value=", details: record.Type.SALES_ORDER});
Sandii
04/13/2020, 6:00 PMN/record
in the console and type r.Type.SALES_ORDER and see that is 'salesorder'
Simon
04/13/2020, 8:33 PM