How we can display dynamic value in the dropdown message formatting from the service node

Hi,

I have to display the data dynamically in the dropdown list from the API. Kindly assist me how can I can do this.