RE: Is it safe to use Record.getValue() with a string parameter?
I see that Record.getValue() is described in the docs as taking an options object argument containing the property fieldId. However, I see that passing in a string containing the name of the field just works. I.e. this:
someRecord.getValue('some_field');
instead of
someRecord.getValue({ fieldId: 'some_field' });
Is the string version safe to use given I can’t find any documentation on it? Thanks!
This is not documented but from my experience it does work. However, I would not do it.