Developer forum

Forum » Integration » NAV Code units for the Integration customer center

NAV Code units for the Integration customer center

Thomas Larsen
Reply

Are there any NAV code units avalible for the Integration customer center?

http://developer.dynamicweb.com/documentation/for-developers/erp-integration-framework/integration-framework-configuration/configuration-guide-integration-customer-center.aspx

Regards

Thomas

 

 


Replies

 
Nicolai Høeg Pedersen
Reply

Hi Thomas

You need the live integration installation and configuration as mentioned. You can find the live integration code here: http://developer.dynamicweb.com/downloads.aspx

And the NAV code units here: http://developer.dynamicweb.com/documentation/for-developers/erp-integration-framework/code-example-documentation/nav-code-units.aspx

BR Nicolai

 
Thomas Larsen
Reply

Thanks, but du the nav code units include the NAV functionality for the integrated customer center.

Functionality that can return open orders, credit notes, invoices, order details and PDF document XML data?

 

 
Nicolai Høeg Pedersen
Reply

That is what the documentation says, so that would be a yes!

 
Thomas Larsen
Reply

ok, i'm not af NAV developer but my NAV developer has sendt me this snippet from the code unit Process method. This dont suppoort the ICC request
<GetList type="OpenOrder" customerID="1234" requestAmount="10" firstItem="10"></GetList>

Can you tell me where to find it?

Process(VAR Request : BigText)

ConvertBigTestToXml(XMLdocIn,Request);

 

xmlrootnode := XMLdocIn.DocumentElement;

CASE xmlrootnode.LocalName OF

  'GetEcomData': GetEcomData(Request,XMLdocIn);

  'PutEcomOrders': PutEcomOrders(Request,XMLdocIn);

  'CalculateOrder': PutEcomOrdersLive(Request,XMLdocIn);

  'PutEcomUsers': PutEcomUsers(Request,XMLdocIn);

  ELSE

    ERROR(STRSUBSTNO('METHOD %1 NOT FOUND',xmlrootnode.LocalName));

END;

 
Jonas Krarup Dam
Reply

Hi Thomas,

Which version of NAV are you using?

I believe that this is only implemented in NAV 2013 and later. However, if it is needed for 2009r2, I don't think it'll be a big task for a NAV developer to merge that functionality from the 2013 codeunit.

I've just checked the NAV 2013 code unit, and It has the code for ICC:


CASE xmlrootnode.LocalName OF
  'GetEcomData': GetEcomData(Request,XMLdocIn);
  'PutEcomOrders': PutEcomOrders(Request,XMLdocIn);
  'CalculateOrder': PutEcomOrdersLive(Request,XMLdocIn);
  'PutEcomUsers': PutEcomUsers(Request,XMLdocIn);
  'GetPDFForItem':
    BEGIN
      CLEAR(Request);
      CASE Get_TextFromNode(XMLdocIn,'/GetPDFForItem/@type') OF
        'OpenOrder': Request.ADDTEXT(PrintReportasPDF(1,Get_TextFromNode(XMLdocIn,'/GetPDFForItem/@id')));
        'Invoice': Request.ADDTEXT(PrintReportasPDF(2,Get_TextFromNode(XMLdocIn,'/GetPDFForItem/@id')));
        'Credit': Request.ADDTEXT(PrintReportasPDF(3,Get_TextFromNode(XMLdocIn,'/GetPDFForItem/@id')));
        ELSE
          ERROR(STRSUBSTNO('Report %1 NOT FOUND',xmlrootnode.LocalName));
      END;
    END;
    'GetList':
    BEGIN
      CLEAR(Request);
      CASE Get_TextFromNode(XMLdocIn,'/GetList/@type') OF
        'OpenOrder': GetList(1,Get_TextFromNode(XMLdocIn,'/GetList/@customerID'),Request,XMLdocIn);
        'Invoice': GetList(2,Get_TextFromNode(XMLdocIn,'/GetList/@customerID'),Request,XMLdocIn);
        'Credit': GetList(3,Get_TextFromNode(XMLdocIn,'/GetList/@customerID'),Request,XMLdocIn);
        ELSE
          ERROR(STRSUBSTNO('table %1 NOT FOUND',xmlrootnode.LocalName));
      END;
    END;
    'GetItem':
    BEGIN
      CLEAR(Request);
      CASE Get_TextFromNode(XMLdocIn,'/GetList/@type') OF
        'OpenOrder': GetItem(1,Request,XMLdocIn);
        'Invoice': GetItem(2,Request,XMLdocIn);
        'Credit': GetItem(3,Request,XMLdocIn);
        ELSE
          ERROR(STRSUBSTNO('table %1 NOT FOUND',xmlrootnode.LocalName));
      END;
    END;

 
Anders Ebdrup
Reply

Hi Jonas,

 

Do you have any version of the NAV codeunit with support for these two attributes; requestAmount and firstItem?

 

Best regards, Anders

 

You must be logged in to post in the forum