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> Operationsinitialize / initializeList192Java (initializeList)InitializeRef iRef1 = new InitializeRef();iRef1.setInternalId("176");iRef1.setType(InitializeRefType.customer);InitializeRecord ir1 = new InitializeRecord();ir1.setReference(iRef1);ir1.setType(InitializeType.customerPayment);InitializeRecord ir2 = new InitializeRecord();ir2.setReference(iRef1);ir2.setType(InitializeType.invoice);sessMgr.getPort().get<strong>NetSuite</strong>PortTypePort().initializeList(new InitializeRecord[]{ir1, ir2});C# (initialize)private void Initialize(){this.login(true);InitializeRef ref1 = new InitializeRef();ref1.type = InitializeRefType.salesOrder;//internal id of the sales order to be converted to cash saleref1.internalId = "792";ref1.typeSpecified = true;InitializeRecord rec = new InitializeRecord();rec.type = InitializeType.cashSale;rec.reference = ref1;ReadResponse read1 = _service.initialize(rec);}<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!