Skip to Content
0
Jan 12, 2023 at 04:18 PM

Unable to retrieve OData entity count AND data

191 Views

I have seen several questions about this but no answer that has worked for me.

I am able to get the number of job requisition posting entities using:

/odata/v2/JobRequisitionPosting/$count?$params[…]

That works, but the data – the reqs themselves – are not included. Only the count is returned. The SuccessFactors API docs indicate the $count=true should work as a URL parameter, but this appears to be ignored, even in SF's own "Try Out" sandbox feature. It doesn't work in my org's implementation either.

I have also tried $inlinecount=allpages and that returns a server error.

I can call the API twice to get both the data and the count, but that seems ridiculously inefficient. Does anyone have a solution?

Thanks for your help!

John