Creating dynamic dropdown menus in Zapier platform UI

I’m building a Zapier integration through their platform UI and need to implement a dynamic dropdown for one of my triggers. I’ve been struggling with this for a while now and keep running into the same error even when I try to use static data.

I’ve attempted multiple approaches but nothing seems to work. Even when I simplified it to just return hardcoded values, I still get the same error message. Here’s the basic code structure I’m testing with:

let dropdown_result = {};
dropdown_result['success'] = true;
dropdown_result['options'] = ["9876543210", "9876543221", "9876543232", "5551234567"];
dropdown_result['response_id'] = 100;

return [dropdown_result];

I’ve configured the static response in the dropdown settings and set up the output definition, but the dynamic dropdown configuration keeps throwing errors during testing. Has anyone encountered similar issues when setting up dynamic dropdowns in Zapier’s UI? What’s the correct format for the response structure?

Zapier dropdowns can be finicky - your response format’s prob the issue. Return an array of objects directly: [{id: '123', name: 'Option 1'}]. Don’t wrap it in a result object. Also, make sure your field key matches exactly what you put in the UI config.

Had the exact same headache when I started with Zapier. You’re returning an array with an object inside, but Zapier wants just the array of dropdown options. Your code wraps everything in a result object - that’s what’s breaking it. Return something like [{id: '9876543210', name: 'First Option'}, {id: '9876543221', name: 'Second Option'}] instead. Also check your HTTP method in the dropdown config matches your endpoint. I spent hours debugging this because I had GET configured but my code expected POST.