Hi Team,
I am trying to search email in all existing contacts but in response, it is showing only the basic details of contact, I need all other custom fields as well.
tried &include=contact nothing gives the result. Kindly help.
Attaching sample code below
Post api: https://xx/crm/sales/api/filtered_search/contact?per_page=100&page=1
{
"filter_rule": [
{
"attribute": "contact_email.email",
"operator": "is_in",
"value": "xx@gmail.co"
}
]
}
Actual result:
{
"contacts": [
{
"partial": true,
"id": 125000135502,
"job_title": null,
"lead_score": 29,
"email": "deivi@gmail.co",
"emails": [
{
"id": 125590,
"is_primary": true,
"label": null,
"_destroy": false
}
],
"work_number": "23332232332",
"mobile_number": null,
"open_deals_amount": null,
"won_deals_amount": null,
"record_type_id": "2000012759"
}
],
"meta": {
"total": 1
}
}
Expected result:
{
"contact": {
"id": 123542225000145458,
"first_name": "Arsenio",
"last_name": "Guzman",
"display_name": "Arsenio Guzmntry": "Dominican Republic",
"email": "ajguzman-test@tekhsoft.com",
"emails": [
{
"id": 125000145569,
"value": "ajguzman-test@tekhsoft.com",
"label": null,
"_destroy": false
}
],
"time_zone": null,
"work_number": "+18092700000",
"mobile_number": null,
"address": null,
"last_contacted_sales_activity_mode": null,
"custom_field": {
"cf_contact_role": null,
"cf_subscription_status_dnd": false,
"cf_preferred_language": null,
"cf_department_migrated": null,
"cf_gender": null,
"cf_contact_attempts": null,
"cf_leadspace_du_ls_id": "daDMX+XyVwyjBDQz8KcIsMvHpl+ATV3P",
"cf_sales_accepted": null
},
"created_at": "2023-06-19T18:52:10+05:30",
"updated_at": "2023-06-19T19:52:44+05:30",
"phone_numbers": [],
"tags": []
},
"meta": null
}