APIs & Integrations

AlejandroGarcia
Participante

Update List Filter Email Event API Error

resolver

Hi,

I'm trying to create/update the filters of a Dynamic List. It is a simple filter: Get all Contacts who Received and specific Email.

I tried both adding the filters in the creation and updating an existing List. The Update body for example:

{
  "filterBranch": {
    "filterBranchType": "OR",
    "filters": [],
    "filterBranches": [
      {
        "filterBranchType": "AND",
        "filters": [
          {
            "level": "EMAIL_API_CAMPAIGN",
            "appId": "XXXXX",
            "emailId": "186899289459",
            "filterType": "EMAIL_EVENT",
            "operator": "RECEIVED"
          }
        ],"filterBranches": []
      }
    ]
  }
}

I can see how the Id changes in the UI, but it looks like it is not matching the EmailId and it is using the Id as a name:
AlejandroGarcia_0-1741180102643.png

The Email exists:

AlejandroGarcia_1-1741180238576.png

 

I've tried all Levels:
 "EMAIL_API_CAMPAIGN""EMAIL_API_CAMPAIGN_GROUP", "HUBSPOT_CAMPAIGN" and I get the same error.

Is there any other setting I should change?
Thanks!


0 Avaliação positiva
1 Solução aceita
Jaycee_Lewis
Solução
Gerente da Comunidade
Gerente da Comunidade

Update List Filter Email Event API Error

resolver

Hey, @AlejandroGarcia 👋 Thanks for your post. One thing that helps me sometimes is to try to reverse-engineer the List filters in-app first.

  • Create a List with the same filter options
  • Verify it populates as expected
  • Grab the List ILS ID
  • Make a request to the GET List by ID Endpoint and include the `includeFilters=true` param
    https://api.hubapi.com/crm/v3/lists/{some_list_ILS_ID}?includeFilters=true​
  • Compare the filter set-up JSON between what you stared with and what is contained in the response

It might not be the exact solution, but it may get you to the next step.

 

Talk soon! — Jaycee


Join us on March 27th at 12 PM for the Digital Essentials Lab, an interactive session designed to redefine your digital strategy!
Engage with expert Jourdan Guyton to gain actionable insights, participate in live Q&A, and learn strategies to boost your business success.
Don't miss this opportunity to connect and grow—reserve your spot today!


Did you know that the Community is available in other languages?
Join regional conversations by changing your language settings !

Exibir solução no post original

2 Respostas 2
Jaycee_Lewis
Solução
Gerente da Comunidade
Gerente da Comunidade

Update List Filter Email Event API Error

resolver

Hey, @AlejandroGarcia 👋 Thanks for your post. One thing that helps me sometimes is to try to reverse-engineer the List filters in-app first.

  • Create a List with the same filter options
  • Verify it populates as expected
  • Grab the List ILS ID
  • Make a request to the GET List by ID Endpoint and include the `includeFilters=true` param
    https://api.hubapi.com/crm/v3/lists/{some_list_ILS_ID}?includeFilters=true​
  • Compare the filter set-up JSON between what you stared with and what is contained in the response

It might not be the exact solution, but it may get you to the next step.

 

Talk soon! — Jaycee


Join us on March 27th at 12 PM for the Digital Essentials Lab, an interactive session designed to redefine your digital strategy!
Engage with expert Jourdan Guyton to gain actionable insights, participate in live Q&A, and learn strategies to boost your business success.
Don't miss this opportunity to connect and grow—reserve your spot today!


Did you know that the Community is available in other languages?
Join regional conversations by changing your language settings !
AlejandroGarcia
Participante

Update List Filter Email Event API Error

resolver

Hey @Jaycee_Lewis , that worked! Tried to do it before but didn't know the ?IncludeFilters=true option.

Thank you!

0 Avaliação positiva