Populate dynamic dropdowns

In order to populate dropdowns during setup, the Integration Builder will ask for a URL where it can fetch an array of options. These options are arrays of objects with a label and value. The label will be what is displayed, while the value will be saved in the installation config.

Here's an example of the options array

app.post('/options', (req, res) => {
  res.send([
    { label: 'Foo', value: 1 },
    { label: 'Bar', value: 2 },
  ]);
});

Did this page help you?