Not the most popular opinion I have but when you’r...
# suitescript
c
Not the most popular opinion I have but when you’re designing 2.0, id make a module for your custom records and fields that have readable properties to IDs so that your code is more readable since you don’t have IDs plastered everywhere.
👍 1
r
Can you give me an example on this? Can't wrap my head around it without an example.
c
like if i have a custom record called temp employee then i'd create a temp employee module
all that module would have is property to ID combos like
{ TEMP_EMPLOYEE_NAME: 'custbody_templemplpoyeename'}
then you'd use use your module and the property where you'd need that ID instead of using the ID as the property is more readable
r
So this will be like a custom object with readable fields that map to the actual fields
c
yes
but a self contained module so that its reusable easily