I have a platform where users can create a contact list within my platform’s SendGrid account. Using the SendGrid Contacts plugin, I can dynamically pull some basic details from a selected SendGrid Contact List. However, I’m struggling to retrieve the email addresses of the contacts within that list.
My goal:
Allow users to select a SendGrid contact list they have access to.
Send an email through my Bubble platform to the contacts in that list.
I’m very familiar with sending emails to a list stored directly in Bubble, but I can’t figure out how to do the same with a list stored in SendGrid.
Has anyone successfully handled this? Any insights would be greatly appreciated!
Someone can correct me if I am wrong but I think you will have to use the list of IDs that are being displayed to then grab list of contacts and find the contact with that ID to access their email.
Thanks for the reply! I just landed on my issue after reading your response and digging in more. Seems I can do a search for every user in my Sendgrid contact list and filter by whether or not they have a specific list in their “List of Ids.” However, the Sendgrid Contacts plugin is using pages to search through the contacts, so in it’s basic form, it’s not searching through all of my contacts, and thus not finding someone in the first page it’s searching.
So… it’s only searching through the first 100 individuals in my Sendgrid Contacts list, but I need to build a system where it searches through everyone in my Sendgrid Contacts list and finds any user that has a specified List ID in their List of Ids. I believe I need to learn how to run a workflow to somehow go through multiple pages of a list and save the right emails to a list to email.