I can’t think of a reason why this would or should matter, but it was not at all what I was expecting, so I thought I’d document it in case I need it at some point in the future. Maybe it will prove helpful to someone else.
I recently needed to confirm that iterating through all of the fields from within a server script would really iterate through all of the fields. Much to my surprise, I found out that there are a subset of fields that are on the glide record object (for project tasks), but which don’t show up if I go and look at the table definition in the GUI.
They are:
sys_tags
variable_pool
sys_meta
hierarchical_variables
I just used a for loop to do the iteration. Something like:
for (var field in record) { gs.log(field + " : " + record[field]); }