cancel
Showing results for 
Search instead for 
Did you mean: 

Missing quantity field in web service response?

js2
Product and Topic Expert
Product and Topic Expert
0 Kudos

I've created a new web service on standard Business Object:

EmployeeTime

This web service has two operations: Query and Read.

The query operation works as expected but when I run the Read operation it returns all the correct data EXCEPT the quantity fields...

In the EmployeeTime object there is a list of Items. Each item has a Quantity and QuantityTypeCode element amongst all the others.

Any idea what these quantity elements would not be returned?

(Yes - I did ensure the Quantity fields were ticked when defining the web service.)

😉

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member186648
Active Contributor
0 Kudos

Hi Jason,

Webservice response contains only those elements which has data, Quantity might not have data for the Item instance you have selected.
You could verify this by opening the same instance in the UI and check if Quantity is not empty.

Thanks, Pradeep.

js2
Product and Topic Expert
Product and Topic Expert
0 Kudos

Thanks for that Pradeep - I understand that and the underlying time sheets I'm looking at do indeed had time values (quantity).

former_member186648
Active Contributor
0 Kudos

Hi Jason,

Download the .wsdl file for the webservice and see if the Quantity field exists in the .wsdl, if not unselect the Quantity field and reselect, save and activate the webservice, and test it.

Thanks, Pradeep.