Azi
06/30/2020, 1:51 PMN/query
module doesn't have getText or getValue like the search module does.
That being said, how would one get the text, for a field? For example if I want text representation of the customer and not in the internal id?
The solution I could think of is to join onto customer and then get name.
But is there a more direct way to get it, or is that what I would need to do?Sandii
06/30/2020, 2:16 PM(fieldId#display}
to see the display instead.Azi
06/30/2020, 2:25 PMSandii
06/30/2020, 2:26 PMSandii
06/30/2020, 2:27 PMcreateColumn({
formula: "NVL({custrecord_uom#display},'Base Unit')",
type: query.ReturnType.STRING
})
Sandii
06/30/2020, 2:27 PMcontext
property insteadSandii
06/30/2020, 2:28 PMAzi
06/30/2020, 2:29 PMAzi
06/30/2020, 2:32 PMAzi
06/30/2020, 2:39 PMtype: query.ReturnType.STRING
It seems that only works with formula. I tried adding a formula and just passed the field value straight to the formula, but that gets an error. I could map over the results and convert the types, but is there a more direct way?
The reason I specifically want a string and not a number is because we also use the search module and that returns a string.Sandii
06/30/2020, 2:41 PMSandii
06/30/2020, 2:42 PMTO_CHAR
is probably what you are looking for