Filtering companies on list membership in programmable email

Hi there, using programmable email, I’m trying to return a list of Companies associated with a Contact, but filter those Companies based on list membership:

{% set associated_companies = crm_associations(contact_details.id, "USER_DEFINED", 146, 'list_memberships'~'contains'~module.list_id, 'venue_id,name,plan_name', false) %}

Does anyone know if this is possible in programmable email? I have a feeling the list_memberships function doesn’t exist here, but could be wrong.

Thanks!

Hi, @btag :waving_hand: Thanks for your question. Let’s invite some of our community members to the conversation — hey @Teun @Bryantworks, do you have any experience with Programmable Emails you can share with @btag?

Thank you very much for taking a look! — Jaycee