This topic contains 2 replies, has 0 voices, and was last updated by jfnsapi 8 years, 6 months ago.

  • Author
    Posts
  • #6696

    jfnsapi

    Hi All. I have an existing SalesOrder record that has the partner populated. I am trying to update the SalesOrder using SuiteTalk via .Net to remove the reference to the partner. I’ve tried:

    salesOrder.partner = null;

    salesOrder.partner = new RecordRef();

    salesOrder.partner = new RecordRef { internalId = null, type = RecordType.customer, typeSpecified = true };

    The update always returns success, but the partner remains unchanged. I can change the partner to a different customer, I just cannot remove the link. I am able to remove the partner via the UI.

    Any help would be appreciated.

    Thanks,

    Jon
    This is a cached copy. Click here to see the original post.

  • #6697

    Daniel Giguere

    Hi Jon, you might try the following, or search in the help for ‘nullFieldList’:

    Code:
    salesOrder.nullFieldList = new String[]{“partner”};

  • #6698

    jfnsapi

    Daniel, thanks so much! Setting the partner field to null along with setting the nullFieldList as you suggested did the trick. I really appreciate your help.

You must be logged in to reply to this topic.