Skip to main content
Question
Asked a question recently

When filtering on a Name Query API using the example below am not getting relevant records instead it's displaying all the records from the API. Can some take a look and let me know if am using the right syntax? api/rest/named-query/DWorxReferenceData/FieldCountry/GD?/?$f=FieldToCountries.Country.CountryID%20=%20%27COU0000000016%27

Where am I?

In Semarchy Community you can ask and answer questions and share your experience with others!

Peter TseSemarchy Team
Senior Customer Success Consultant at Semarchy

Hi Khaled

The reason that you're getting all the GD records is this bit here:

/GD?/?$f

 Your request should be something like this:

api/rest/named-query/DWorxReferenceData/FieldCountry/GD?$f=FieldToCountries.Country.CountryID=%27COU0000000016%27

You probably also don't require the spaces (%20) before and after the '='.

 

Regards, Peter