Custom code and Company deduplication

After a bunch of troubleshooting, I found the two issues which were breaking the code:

  1. I was calling the wrong APIs, which should be basicApi and searchApi instead of DefaultApi. The Company Endpoints documentation was misleading in this regard.
  2. The sample code refers to “body.properties” when trying to look into the properties clause of a response, and “body” throws it off, so that’s inaccurate too. The reference should only be “properties”, as in companyResult.properties[DEDUPE_PROPERTY].