10.07.2015 Views

SuiteTalk (Web Services) Platform Guide - NetSuite

SuiteTalk (Web Services) Platform Guide - NetSuite

SuiteTalk (Web Services) Platform Guide - NetSuite

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

<strong>Web</strong> <strong>Services</strong> Operationsattach / detach126SOAP ResponseIn the response, notice that the internalID for each record added is returned.Java Samplepublic void addListCustomer() throws RemoteException {this.login(true);Customer cust1 = new Customer();cust1.setEntityId("Shutter Fly");cust1.setCompanyName("Shutter Fly, Inc");cust1.setUnsubscribe(false);Customer cust2 = new Customer();cust2.setEntityId("GNC");cust2.setCompanyName("GNC Corp");cust2.setUnsubscribe(false);Customer[] customers = new Customer[2];customers[0] = cust1;customers[1] = cust2;}WriteResponseList responseList = _port.addList(customers);attach / detachThe attach and detach operations can be used to define or remove a relationship between tworecords. For example, a Contact record can be associated with a Partner record, or anOpportunity record can be associated with a Customer record.Important: A user error is thrown if you attempt to attach files or record that do not exist.<strong>SuiteTalk</strong> <strong>Platform</strong> <strong>Guide</strong>

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!