question

francleveque avatar image
francleveque asked

Economy - SearchItems - OData - Contains - Issue

Hello Playfab,

We have been trying to create a request to list all the items containing a word using the OData function "contains" but without success.

We do not understand how to formulate a valid request with the contains instruction. We wrote the request in all the possibles ways but the server always return an error.

From our understanding this request should be valid (Tested in Postman) :

{ "Filter":"contains(Title, 'Value')" }

OR


{ "Filter":"contains(Title/NEUTRAL, 'Value')" }

We only have problem with the "contains" instruction. All the others instructions we are using are working.

What are we doing wrong ?


Thanks for the help,

Regards

10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

·
Gosen Gao avatar image
Gosen Gao answered

As Supported Filter mentions, ‘Filter doesn't support arithmetic operators or string functions.’ So, the contains function is not supported.

10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.