cancel
Showing results for 
Search instead for 
Did you mean: 

Suppressing Null Values attributes in OData Response

0 Kudos

Hi,

I get the response for my OData query as in the screen Shot. I want to suppress the Attributes which have null values.

Please let me know how can I do this.

Accepted Solutions (1)

Accepted Solutions (1)

kammaje_cis
Active Contributor
0 Kudos

You cannot limit the properties with such dynamic conditions. But you can use $select to limit number of properties fetched. (do a search on $select keyword).

Just curious, what is the purpose of this requirement?

0 Kudos

I have a structure with around 50 fields which returns values. I want to show only attributes which has values and hide which are null

former_member184867
Active Contributor
0 Kudos

Why do not you hide them in the UI? As Krishna said, there is no way to dynamically eliminate the properties of entity.

Answers (0)