X++ Reserved Column Name?

Viewed 52

I am receiving a syntax error when referencing a column in a custom table. Unfortunately, renaming the column is not an option. It is in locked isv code.

My guess is that "Setting" is actually some sort of reserved term when working with a table.

Anyone see this before? Any workaround?

enter image description here

Thanks,

  • Brad
1 Answers

As a dirty workaround you could try to access the field like so

MyTable tb;
...    
info(tb.(fieldName2Id(tableNum(MyTable), 'Setting')));
Related