AnsweredAssumed Answered

User Filter with primary_address equals true

Question asked by Daniel Zebrowski on Jul 10, 2019
Latest reply on Jul 10, 2019 by Harald Kuske

Hello,

 

 

i want to get all employees(users) with an POST API Call where the "status" is active and the "primary_address=true". For the "status" my filter works, but for the "primary_address=true" i get an error that the system can't find the attribut.

 

Im using postman(sugar_v10) with this filter:

{
"filter": [
{
"$and": [
{
"status": {
"$equals": "Active"
}
},
{
"email.primary_address" : {
"$equals": true
}
}
]
}
],
"max_num": -1,
"fields": "id,name,date_modified,email"
}

 

Can anybody please help?

 

Best regards

Outcomes