How to not retrieve the description with GetItemCall
Find the answer to your question
Please enter a search keyword.
Advanced Search
Products
Question
The Documentation for GetItemCall states that by default descriptions are not returned. Defaulting the DetailLevel does in fact return the Description. How do I prevent the Description from being returned?
Answer
The default DetailLevel for all ApiCalls is DetailLevel.ReturnAll. GetItemCall does not modify this.
Setting the detail level to null will ensure that minimal Item information is returned by the call:
GetItemCall getItemCall = new GetItemCall(apiContext);
getItemCall.setDetailLevel(null);
ItemType item = getItemCall.getItem(itemID);
Setting the detail level to null will ensure that minimal Item information is returned by the call:
GetItemCall getItemCall = new GetItemCall(apiContext);
getItemCall.setDetailLevel(null);
ItemType item = getItemCall.getItem(itemID);