WebService Multi dimension array

CenterDCenterD Member Posts: 37
edited 2013-07-18 in NAV Three Tier
I have to create a navision 2013 webservice that takes the following Soap input:

$request = array(
"CreditMemo" => array(
"Sell_to_Customer_No" => CUSTOMER_NUMBER,
"External_Document_No" => CUSTOMERS_OWN_REFERENCE
"XPOS_Reference" => XPOS_REFERENCE,
"SalesLines" => array(
array(
"Type" => "Item",
"No" => PRODUCT_NUMBER,
"Quantity" => 1
)
)
)
);

The return value should be a CreditMemo NO/KEY

It should create credit note headers and corresponding lines.

It seems that I have to use a page for this, but do I also have to create a extension codeunit?
How do I “Cycle” through the input headers / lines in order to create these in navision?

Comments

  • mdPartnerNLmdPartnerNL Member Posts: 802
    This looks like an ajax call. You could send a large string to a codeunit and parse it in NAV. Did you search for Freddy's samples?
Sign In or Register to comment.