Quantcast
Channel: Microsoft Dynamics 365 Community
Viewing all articles
Browse latest Browse all 64797

Which query range should I select?!

$
0
0
Customer asked me to figure out which "Customer account" should be selected in a query. There were three of them on the Customer invoice journal table:


Apparently, there were a couple of fields that used the default label, and I found them in the following way.

Selected the first "Customer account" range:


... right-clicked in the field value and selected Record Info:


... in the dialog, clicked on the Script button:


... pasted the clipboard to Notepad:


The extended field ID was 65540.

Then, I selected another range:


... and repeated the process. The second field ID was 81625. Finally, I selected the third Customer account range and found that it was based on the field ID 81626.

So, the three field IDs for CustInvoiceJour table were found. But what were the field names?

staticvoid printFieldNames(Args _args)
{
printfieldId2Name(tableNum(CustInvoiceJour), fieldExt2Id(65540));
printfieldId2Name(tableNum(CustInvoiceJour), fieldExt2Id(81625));
printfieldId2Name(tableNum(CustInvoiceJour), fieldExt2Id(81626));
pause;
}

And the output was:

Somebody did not follow the Best Practices for Table Fields:







Viewing all articles
Browse latest Browse all 64797

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>