Answers - Bury Entities through Filter

Hi! I want to bury entities using a filter, but I’m not able to get the code to work through JSON nor UI. Does this look correct? / are we able to filter when burying entities or am I missing an element here?

{“actionType”:“BURY_ENTITIES”,“filter”:{“savedFilterId”:{“$eq”:“554288335”}},“verticalKey”:[“locations”]}

Thanks for the feedback!

Hi @Emily_Gruber!

Try removing the [] from your “verticalKey” component. You should also include an empty "entityIds": [] to your JSON before your saved filter component. The final JSON should look like:

{“actionType”:“BURY_ENTITIES”,"entityIds":[],“filter”:{“savedFilterId”:{"$eq":“554288335”}},“verticalKey”:“locations”}

Let me know if this doesn’t work!

Best,
Jamie

Hi Jamie, Appreciate the help here! Unfortunately when I copy and paste that in, it responds with “Invalid JSON”.

Maybe the criteria has to do with it… I’m currently using Search term matches exactly “Branch near me”. Does this work or would I have to use a different set of criteria? Thanks! (Let me know too if it would be helpful to share the account with you).

Hi @Emily_Gruber,

Try this!

{"actionType":"BURY_ENTITIES","filter":{"savedFilterId":{"$eq":"554288335"}},"verticalKey":"locations"}

You actually didn’t need the “entityIds” included—just had to remove those brackets within the verticalKey component!

Let me know if you have any questions!

Best,
Jamie