Skip to Content
0
Jan 15 at 10:14 AM

Change OData Response/Hide fields in OData response

139 Views

Hi,

I have a requirement to hide certain fields in ODATA response? Is it possible to do so?

For example:

I have defined my OData in following way

ODATA - ZAPI_XX_SRV

Entity - TestR

Fields - OperationType and OperationID

In my request payload, I want to pass OperationType only and do a POST METHOD. Once record is created, an OperationID is generated which I want to send in response. But right now, both OperationType and OperationID are being sent. I want to hide OperationType in response only.

Any Help will be appreciated.

Thanks and regards,

Rishav