API not returning VendorName from VendPartSvc/VendParts endpoint

Hi folks,

I’m hitting the /api/v1/Erp.BO.VendPartSvc/VendParts endpoint asking for a result where our PartNum eq ‘X’ … I’ve also tried other endpoints list GetList…

…no matter what valid results I get back, the “VendorName” property is always returned as an empty string. Clearly a relationship exists and validated inside the Epicor client.

   {
      "Company": "TI",
      "PartNum": "064-3027",
      "VendorNum": 365,
      "VenPartNum": "M1-63-8",
      "VendorName": ""
    }

Is this a known API bug or depreciated or? Anyone know?

Yeah, that seems goofy to me. From a quick look it looks like the name is stored in VendorNameName, so I don’t know the why but that should be what you’re looking for.

I find it more reliable and more efficient to use the BAQSvc for this kind of thing. You get only the columns you want, and you can test it easily.

VendorNameName is also an empty string unfortunately.

Is what I’m going to have to do I guess. Is there any track for asking about this issue – should I ping support on it?

Huh, well good to know. I understand it even less now, sorry to guide you wrong.

I guess you can. The REST endpoints are wrappers around the regular Business objects which may or may not have the columns, filter, or sort that you want. This comes free with BAQs. It’s why the BAQ is used for drop-downs etc. So while it may be a bug, I’m not so sure that calling the REST endpoint directly would be preferred. :person_shrugging: