I’ve got what seems to be an obscure technical question, but read all the way to the end to see why it matters.
If I build a Generic Inquiry on the CustSalesPeople table, the IsDefault field appears in the SQL Trace results, showing that this value is pulled from the database. See these two screenshots:
![](https://uploads-us-west-2.insided.com/acumatica-en/attachment/408c31f9-5fcb-458a-aa1a-119b3e4916d3.png)
![](https://uploads-us-west-2.insided.com/acumatica-en/attachment/b9858c77-3dd8-4531-ae23-51ed99fe2c65.png)
But if I build a Generic Inquiry on the POVendorInventory table, the IsDefault field does not appear in the SQL Trace results. Somehow it must get magically pulled from the Acumatica Framework somehow. See these two screenshots:
![](https://uploads-us-west-2.insided.com/acumatica-en/attachment/d3949faf-1c3c-4b38-908d-b776889f913f.png)
![](https://uploads-us-west-2.insided.com/acumatica-en/attachment/b91ed829-21f8-4049-af5c-d74436f87aee.png)
Now for why this matters.
I’m able to use CustSalesPeople.IsDefault in a CONDITION or a JOIN, but I’m not able to use POVendorInventory.IsDefault in a CONDITION or a JOIN.
Sometimes I need to get the “default Salesperson for a Customer” so I join from Customer to CustSalesPeople and include CustSalesPeople.IsDefault=true in the join. This works great.
But what if I need to get the “default Vendor for an Item”? I’m not able to do that because I can’t join from InventoryItem to POVendorInventory and include POVendorInventory.IsDefault in the join.
I would use the InventoryItem.PreferredVendorID field for this. It works. But, as you can see in this next screenshot, it’s marked as OBSOLETE in the new DAC Schema Browser which makes me wonder if it will be removed in future Acumatica versions:
![](https://uploads-us-west-2.insided.com/acumatica-en/attachment/f920a791-3b38-4854-b9c7-675a3f721fdf.png)
Can someone help me understand how to get the default Vendor for an Item?
Maybe