Developer forum

Forum » Integration » Order Details in IntegrationCustomerCenter

Order Details in IntegrationCustomerCenter

Adrian Ursu Dynamicweb Employee
Adrian Ursu
Reply

Hi guys,

We are using Integration Customer Center in one of our projects.

I was wondering if there is any way to display the content of an order instead of loading the PDF from NAV.

I understand this is a live call, but I am not sure if this is supported or easily made supportable.

I would like to avoid getting the orders back in DW for this purpose.

Thank you,

Adrian


Replies

 
Dmitriy Benyuk Dynamicweb Employee
Dmitriy Benyuk
Reply

HI Adrian,
yes, it should be possible, the fields from the order ERP response xml should be possible to output on the Customer center order details frontend.
Look on the attached sample xml that could be received from the ERP and attached template for the order details.
The code which is filling the values to the tags form the xml is located in the live integration IntegrationCustomerCenterHandler.cs file: ProcessItemDetailsResponse method.
The url which you want to trigger the order details filling is next:
regular customer cneter page with order list:
Default.aspx?ID=62&Purge=True
with order details: /Default.aspx?ID=62&Purge=True&itemID=101017&type=OpenOrder
Paragraph settings:

So in the template the tags names are "columnName's" from the xml:
 <td>@orderLine.GetString("ProductNumber")</td>
GetString("ID") - order id
GetString("CustomerName") - customer name, etc
Hope that will give you more details
Regards, Dmitrij

 
Adrian Ursu Dynamicweb Employee
Adrian Ursu
Reply

Hi Dmitrij,

Thank you for your response.

I am using standard Rapido setup with standard NAV integration.

I can see the order list just fine, but I cannot see the Details. I have tried the link format you have suggested, but I keep getting a "No items found".

This is how my URL looks like: https://allmedia.dotfusion.ro/moj-ucet/moje-objednavky?itemID=POBJ1826638&type=OpenOrder

I have tried both id and UrlOrderID tags for the itemID parameter.

I don;t know what to try next. Do you have an OrdersList template that works for you?

Is there a setting on the response I am supposed to get back from NAV?

Thanks,
Adrian

 
Dmitriy Benyuk Dynamicweb Employee
Dmitriy Benyuk
Reply

Hi Adrian,
could you check your NAV code unit response for the GetItem request?
Try to look on the live integration log file when you visit the url with itemID param. It should look like:
<GetItem type="OpenOrder" customerID="20000"  documentNO="101017"></GetItem>
And the response I've got in my case was the xml with 'EcomDocuments' and 'EcomDocumentLines' table names xml which was not shown on the front end:
<Items type="OpenOrder">
  <table tableName="EcomDocuments">
    <item table="EcomDocuments">

....
<table tableName="EcomDocumentLines">
    <item table="EcomDocumentLines">

So there is a workaround if you have the same xml: edit the code unit in NAV and replace:
EcomDocuments - EcomOrders
EcomDocumentLines - EcomOrderLines
Regards, Dmitrij

 

You must be logged in to post in the forum