11-21-2016 02:10 PM
Hey!
I'd like to sort a /InventoryDetails call by the product family element.
As the product family element is part of the summary element, a ".sort=productFamily" or "sort=summary.productFamily" does not work.
The documentation on sorting is very short and does not cover this case - any idea on this?
Thanks in advance!
Solved! Go to Solution.
11-23-2016 02:10 AM
Thanks for the hint.
It wasn't the missing dot (that was a copy&paste error), but a capital S in Summary - didn't think of that.
Thanks a lot for the help
I suggest adding the info on how to query sub-elements to the API docs. Not everybody might guess that right.
11-22-2016 01:41 PM
Could this be a typo? It looks like you don't have the preceding dot in front of sort. "summary.productFamily" is the correct way to reference the product family parameter of InventoryDetails. The API query should look something like "InventoryDetails?.sort=summary.productFamily".
11-23-2016 02:10 AM
Thanks for the hint.
It wasn't the missing dot (that was a copy&paste error), but a capital S in Summary - didn't think of that.
Thanks a lot for the help
I suggest adding the info on how to query sub-elements to the API docs. Not everybody might guess that right.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide