Developer forum

Forum » Integration » ICC - customerID

ICC - customerID

Michael Knudsen
Reply

According to the documentation (https://doc.dynamicweb.com/documentation-9/integration/structure-rework-unpublished/plug-in-units/live-intetegration-requests-and-responses) should I be able to specify "A valid ‘customer no’ in NAV/BC" in the customerID part of the request.

Doing so, the Customer number dosen't seems to work?

Request:
<GetList type="OpenOrder" customerID="681"></GetList>

Response:
An error occurred processing the request. Exception: Customer with name: 681 not found

 

If I change the request to the customer name it works?

Request:
<GetList type="OpenOrder" customerID="Takk"></GetList>

Response:
<?xml version="1.0" encoding="utf-8"?>
<Items type="OpenOrder" version="1.2.0.20_NAV19.0.36528.38326">
  <item>
    <column columnName="id"><![CDATA[75627]]></column>

 

Br. Michael Knudsen

 


Replies

 
Dmitriy Benyuk Dynamicweb Employee
Dmitriy Benyuk
Reply
This post has been marked as an answer

Hi Michael,
The code works in this way: at first it seaches the customer by the customer No field and if it doesn't find any then it searches for the first customer with
that name.
Maybe you can check if your customer No is indeed 681?
BR, Dmitrij

Votes for this answer: 1
 
Michael Knudsen
Reply

Hello Dmitriy,

- my bad, I used the 'External Id' because the parameter said 'customerID'.  However, it works with the 'Customer number', but in a future release 'customerID' could perhaps be changed to 'customerNo' ? 

Br. Michael Knudsen

 

You must be logged in to post in the forum