Developer forum

Forum » Integration » Integration Customer Center - GetList-requests using contact number

Integration Customer Center - GetList-requests using contact number

Niels Foldager
Reply

Hi Dynamicweb,

When using Integration Customer Center for retrieving orders, invoices and credit memos from Business Central it is only possible to filter data by customer number. If many contacts share the same customer number then they have access to all orders, invoices and credit memos, which is often not preferred. Is it possible to filter data in the GetList-request by using a contact number instead of a customer number?

Best regards,
Niels Foldager


Replies

 
Dmitriy Benyuk Dynamicweb Employee
Dmitriy Benyuk
Reply

Hi Niels,
currently that is not possibe in a standard version of our Plugin unit but you can implement the custom Plugin using our extensibility points and completely(or not completely) override the default behavior of the GetList processing that can suit your needs.
There is an event in the DynamicwebCustomerCenterPublisher OnBeforeExecuteGetListRequest that can be used for that.
If intereseted I can send the code that can be used in this subscriber to override its behavior.
BR, Dmitrij

 
Niels Foldager
Reply

Hi Dmitrij,

Thank you. It would be nice if you can send me the code to override the GetList processing. 

It would be preferable if a GetList request could include both customer number and contact number as parameters. If the contact number is empty, then the data must be filtered based on the customer number.

Best regards,
Niels Foldager

 
Dmitriy Benyuk Dynamicweb Employee
Dmitriy Benyuk
Reply

Hi Niels,
the sample custom subscriber code is here. Try to search for "todo:" and make your changes there, then it should override the standard GetList request with the custom one.
That can be a new feauture request but it seems we don't have plans for it for now.
BR, Dmitrij
 

 

You must be logged in to post in the forum