cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Filtering nested propery in API

wwojtas
Explorer
528

Hi Experts,

Is it even possible to filter SAP Service Cloud Version 2 API by a nested property?
For example in Case API in Sandbox Tryout , if you try to filter all cases for account called 'Arral Energy US' by odata standards the query would look like $filter=account\name eq 'Arral Energy US', but it returns 500 internal server error with

{
  "error": {
    "code": "case.10011",
    "message": "Something went wrong. Try again in some time"
  }
}

Is there a way to query for a nested propery that works and does not result in an error?

Thank you so much in advance.

Regards,

Waldi

Accepted Solutions (0)

Answers (1)

Answers (1)

Bradley_Jackson
Explorer
0 Kudos

Hi,

SAP Knowledge Base article 3578904 provides an example:

The following GET request will filter Cases by Account.

https://<tenant URL>/sap/c4c/api/v1/case-service/cases?$filter=account.id eq <Account UUID>

rpanneel
Participant
0 Kudos
You are correct, in the question of the original poster it would be $filter=account.name eq 'Arral Energy US'