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> OperationsgetList165ItemAvailabilityFilter filter = new ItemAvailabilityFilter();filter.item = recordrefs;GetItemAvailabilityResult res = _service.getItemAvailability(filter);}Java Samplepublic void getItemAvailability() throws RemoteException {this.login(true);RecordRef item1 = new RecordRef();item1.setInternalId("25");item1.setType(RecordType.inventoryItem);RecordRef item2 = new RecordRef();item2.setInternalId("76");item2.setType(RecordType.giftCertificateItem);RecordRef[] recordRefArray = new RecordRef[2];recordRefArray[0] = item1;recordRefArray[1] = item2;RecordRefList itemRefList = new RecordRefList();itemRefList.setRecordRef(recordRefArray);ItemAvailabilityFilter itemAvailability = new ItemAvailabilityFilter();itemAvailability.setItem(itemRefList);getList}GetItemAvailabilityResult response = _port.getItemAvailability(itemAvailability);The getList operation is used to retrieve a list of one or more records by providing the uniqueids that identify those records.If there are multiple ids provided, they can either belong to the same record type or differentrecord types. For example, it is possible to retrieve a customer and a contact within a singlerequest using this operation.If some of the provided ids are invalid, the request is still processed for the valid ids and theresponse will contain a warning that indicates that some of the ids were invalid.Note: An asynchronous equivalent is available for this operation, asyncGetList. Forinformation about asynchronous request processing, see Synchronous andAsynchronous Request Processing.RequestThe getListRequest type is used for the request. It contains the following fields.<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!