Using policy template to convert an array of strings to an array of JSON objects for dynamic values dropdown
I am building a custom connector, and have an API with an operation that returns a JSON object with a string array property named "values". I'd like to use the strings returned in the array to populate an x-ms-dynamic-values dropdown, but Flow requires an array of JSON objects rather than an array of strings.
Can I use any of the (recently introduced) connector policy templates to transform the string array into an array of JSON objects in the Response, so that I use this endpoint in my connector's API as the source for a dynamic values dropdown?
Thanks for the response, I but I think my scenario is different - I don't need a dynamic dropdown in an array, I need to use an array of strings as a dynamic dropdown (so I need to either update my API to emit an array of JSON objects, or if possible leverage a connector policy template to transform the response from my API from an array of strings to an array of JSON objects)