This topic contains 8 replies, has 0 voices, and was last updated by ahawks122 9 years ago.

  • Author
    Posts
  • #6884

    davidc
  • #6885

    nrao

    Hi David,

    Please refer to Suite Answers article : 10978, you will have to make use of the ‘Add’ operation via web services in order to create the Purchase Order.

    The article also contains sample SOAP requests.

    Thanks

  • #6886

    davidc

    Originally posted by nrao

    View Post

    Hi David,

    Please refer to Suite Answers article : 10978, you will have to make use of the ‘Add’ operation via web services in order to create the Purchase Order.

    The article also contains sample SOAP requests.

    Thanks

    Please see myu post below.

  • #6887

    davidc

    Let me restate my question using a visual.

    Please look at the sales item of a Sales Order in the photo. You will see two links that read: “Drop Ship” and “Spec. Ord.”. Next to the links is a vendor.

    By clicking one of those two links, the user can create a Purchase Order that is linked to the Sales Order.

    How can I make THAT happen through Netsuite Webservices?

  • #6888

    nrao

    Hi David,

    – Via WS if you want the PO to be created directly for a drop ship Item, then you will have to set the orderStatus in your request to ‘pendingFulfillment’ and item record should have ‘dropShip’ field marked as True

    – This will automatically create the PO and place the link in the createPO column when viewed in the UI

    – From web services schema for Sales Order the ‘createPO’ field would display the string value : dropShip or specialOrder and ‘createdPO’ element would display the internal id of the created PO

    In terms of emulating the other behaviour in the UI of manually creating the PO by clicking the dropShip/specialOrder link via WS I believe is not possible and the purchase order will have to be created stand alone using the add operation

    I will try to further test and get back to you in case I find another way to do it.

    Thanks

  • #6889

    davidc

    Originally posted by nrao

    View Post

    – Via WS if you want the PO to be created directly for a drop ship Item, then you will have to set the orderStatus in your request to ‘pendingFulfillment’ and item record should have ‘dropShip’ field marked as True

    It isn’t a drop ship. It’s a standard order. Does that matter?

    Originally posted by nrao

    View Post

    In terms of emulating the other behaviour in the UI of manually creating the PO by clicking the dropShip/specialOrder link via WS I believe is not possible and the purchase order will have to be created stand alone using the add operation

    My question is, can the PO’s “createdFrom” property be changed so that it links back to the SO?

  • #6890

    ahawks122

    I have also been looking for a way to create a Purchase Order and associate it to a SalesOrder. Is this possible via the API?

  • #6891

    Nelliott

    Not sure if you’d be able to do this in the context your proposing but have you looked at nlapiTransformRecord?

    If you transform an SO to a PO you will find that the relationship is bidirectional and evident on both records. (ie “createdfrom” on PO will be a link to the SO)

  • #6892

    ahawks122

    I am looking to create the PO via SuiteTalk and associate it to the Sales Order, which I don’t think is possible. I think the solution you are proposing will use SuiteScript, which will require a custom API.

    Just a little background so you understand. We have SOs and POs in our current system we would like to re-create in Netsuite. The problem with letting Netsuite create the PO automatically is it may not send the PO to the correct vendor and we want the PO to match what is in our current system.

You must be logged in to reply to this topic.