Thank you for visiting our Partner Zone. This area is an exclusive space for MYOB Partners. Find out how to Partner with MYOB.
the problem was the UrlEncode...once removed all works fine
August - last edited August
I am using the .NET SDK and querying hte employeeService...when I use the filters below it does not seem to filter only return all records...any ideas what I am doing wrong
When I run the query in POSTMAN it works fine
http://localhost:8080/AccountRight/ac65a625-b0f6-47f4-99a8-ecdfc84422c4/Contact/Employee/?$filter=DisplayID eq 'PASEE123'
but when I construct it in the .NET SDK it does not filter
var pagedCollection = employeeService.GetRange(MyCompanyFile, HttpUtility.UrlEncode("?$filter=DisplayID eq 'PASEE123'"), MyCredentials); var pagedColleaction = employeeService.GetRange(MyCompanyFile, HttpUtility.UrlEncode("?$filter=FirstName eq 'Paul'"), MyCredentials);
UPDATE: Have tried removing the ? from filter but it made no difference