I am attempting to extract the Master Products for the top level organization. I have tried the below code without success. I get no errors, but nothing is returned. Can you please provide example? Thank you.
If tp.Name <> str_Organization_Name Then
Throw New Exception("Item not found")
End If
Debug.Print(System.DateTime.Now)
For Each item As StockedProduct In tp.StockedProducts
Debug.Print(item.PartNumber)
Debug.Print(item.Description)
Next
Debug.Print(System.DateTime.Now)