Custom module - dropdown: populate a global variable?

Hello,

I’m trying to retrieve all the Oauth2 providers declared in a project globals to put them as inputs in a dropdown in the GUI of a custom module. Right now I am writing this manually:

 { name: 'oauth', optionName: 'oauth', title: 'OAuth Provider Name', 
          type: 'text', required: true, defaultValue: '', help: 'Specify the name of the configured OAuth2 Provider used for Office 365 Graph API'}

What I’d like to move to would be to something akin to:

{ name: 'oauth', optionName: 'oauth', title: 'oauth', 
  type: 'droplist', 
  values: [
    xxx
  ], defaultValue: '',
	help: 'Specify the name of the configured OAuth2 Provider used for Office 365 Graph API'
}
Community Page
Last updated: