Problem with XMLPORT and orders

naranara Member Posts: 37
Hi!
I have a .NET app that with use of MSMQ and NAS do some exchange of data, amoung tthese job is exporting orders from Webshop to Navision by use of a XMLPORT that I made, my problem is the following:
These order are not been regsiter as an order but as an offer/demand!!! ](*,)
Any body can help me?
I did included "Document Type" lik 1 in my XMLPORT but I have the same problem.

best regards
Nasser

Comments

  • DaveTDaveT Member Posts: 1,039
    Hi Nasser,

    The easiest way to do this without coding is to import as document type = 0 i.e. quotes. The users can then go through the quotes and "make order" or delete the quote if required. Then your order book are only confirmed orders.
    Dave Treanor

    Dynamics Nav Add-ons
    http://www.simplydynamics.ie/Addons.html
  • naranara Member Posts: 37
    Hi Dave,
    Thanks for yuor advise, I did consider this solution too, but I need to send the OrderNo from Navision to Webshop as confirmation for the export job, so if I do this way I will lose this confirmation
  • DaveTDaveT Member Posts: 1,039
    Hi Nasser,

    This is very easy to make the quote number follow through to the order number. It is simple change on codeunit 86 "Sales-Quote to Order"
    //SalesOrderHeader."No." := '';
    SalesOrderHeader."No." := "No.";
    

    If you decide to go this way then just check that the customer is happy for this to happen with manually entered quotes :wink:
    Dave Treanor

    Dynamics Nav Add-ons
    http://www.simplydynamics.ie/Addons.html
  • naranara Member Posts: 37
    I am not using this codeunit, I am using my own codeunits and xmlports
    in my xmlport that I use to send inn an order from webshop so I do try to send inn documettype with vallue equal 1 but Navisoin do not like this approach so I did removed this tag from xmlport and I do manage to add my order as a offer and when I see in the Sales Header table the value in Document Type is 0 for my orders.
    I wonder if I can improve/update my xmlport!?
  • DaveTDaveT Member Posts: 1,039
    Hi Nasser,

    Sorry, I didn't pick up that you were having problems with the XMLport.

    look at the standard XMLport 99008514 Inbound Sales Order and look how it is treating the line type. It's brought accross as text and then code in the Line_Type - Import::OnAfterAssignVariable() trigger assigns the line type. Same code should work for you.

    Hope this helps.
    Dave Treanor

    Dynamics Nav Add-ons
    http://www.simplydynamics.ie/Addons.html
  • naranara Member Posts: 37
    Thanks again Dave, I will follow your advise.
Sign In or Register to comment.