Using Xrm JavaScript I would like to get a count of the number of items in a lookup.
I have two lookup fields A and B. A is used to filter B. Once B is filtered if it has only one item I would like to set it as the default selected item. The last part I have however I don't see documentation to get a count of the items in a lookup field