Try ERPNext Buy Support Partners Foundation

Assigned To Filter Via REST API!

Hello !!

I am trying to access Leads via API, I am getting Lead Name, and status by its parameter.

api/resource/Lead?&filters=[[“status”,"=",“Replied”]]

I also need a filter by Assigned to the user name. I tried this but It shows a bad request.

api/resource/Lead?&filters=[[“status”, “=”, “Replied”], [“assign_to”, “=”, “useremail”]]

So, I think assign to filter parameter is wrong.

How to resolve this.

I solved it by

api/resource/Lead?&filters=[[“status”, “=”, “Replied”], ["_assign","=","‘useremail.’"]