Hello Guys, Can someone please provide me the SOAP...
# suitetalkapi
a
Hello Guys, Can someone please provide me the SOAP WebService request that gets the active ShippingMethod list? Thanks!
b
a
@battk If I want to get a Shipping Method list while creating SalesOrder, can we get this via this API?
b
its exactly what its for
to get the valid select options for a field
a
@battk could you please provide a sample code?? that really helpful for me...
b
you would need to explain what about the documentation is lacking
a
@battk I am doing the below code but not able to get the list of Shipping Method, GetSelectValueFieldDescription newRecordRef = new GetSelectValueFieldDescription(); newRecordRef.setRecordType(RecordType.salesOrder); newRecordRef.setField("shipmethod"); try { netsuiteLogin(); GetSelectValueResult result = stub.getSelectValue(newRecordRef, 0); if(result.getStatus().isIsSuccess()) { System.out.println("Total: " + result.getTotalRecords()); } } catch(Exception e) { e.printStackTrace(); }
@battk please let me know what I am doing wrong?
@battk the result shows 0 record
b
you probably need to share the request and response from the web service usage logs
and in your case, compare it to the examples from the documentation
a
@battk attachment
b
id probably do what the response warning tells you to do
a
@battk The id should be "shipmethod", correct?? It would be different.
b
read the response.xml
then finish reading the documentation on Getting Dependent Select Values
a
@battk I got it but what about the Internal id, after creation, we got the SO internal id.
@battk I need the shipping method list while creation.
b
i dont understand the questiion, why do you need the internal id of the sales order
a
@battk, I apologize, but it shows that an internal id is needed
b
correct, internal id, but how are you jumping to the internal id of the sales order?
a
@battk I got it, It would be Customer
@battk I apologies for disturbing you but just one questions, I did the code but still getting 0 record, GetSelectValueFieldDescription newRecordRef = new GetSelectValueFieldDescription(); newRecordRef.setRecordType(RecordType.salesOrder); newRecordRef.setField("shipmethod"); GetSelectFilterByFieldValueList filterByValueList= new GetSelectFilterByFieldValueList(); GetSelectFilterByFieldValue[] filterBy = new GetSelectFilterByFieldValue[1]; GetSelectFilterByFieldValue fielters = new GetSelectFilterByFieldValue(); fielters.setField("shipmethod"); fielters.setSublist("shippingList"); fielters.setInternalId("26818"); filterBy[0] = fielters; filterByValueList.setFilterBy(filterBy); newRecordRef.setFilterByValueList(filterByValueList); try { netsuiteLogin(); GetSelectValueResult result = stub.getSelectValue(newRecordRef, 0); if(result.getStatus().isIsSuccess()) { System.out.println("Total: " + result.getTotalRecords()); } } catch(Exception e) { e.printStackTrace(); }
@battk What am I doing wrong?
@battk Same response I am getting.
b
why are you setting the sublist?
a
@battk Okay... after removing the sublist,,, still getting same error "Results are incomplete. You must provide a value for field entity."
b
did you add the entity to filter by list?
a
Hello @battk, Thank you so much.... Now I got the Shipping list. Thanks again. Just one question... The shipping method list is dependent on Customer subsidiary, right??
b
yes
a
@battk Okay... thank you so much 🙂
Hello @battk Client wants the Shipping method list before the creation of the Customer. How can I get it?? Any suggestion...
@battk Can you please let me know??
b
i dont think ship items are normally exposed via soap outside of select options
if you wanted the ship methods before the customer is known, you can probably make a ship method list/record custom field and get those select values instead