I'm building a Data Action to call GET /api/v2/telephony/providers/edges/trunkbasesettings
This, by default, returns the results as a top-level object, and in that, an array called entities. I'm trying to configure my data action to only return the first entity in the array, as my queries will only ever have a single entity in the first place.
I have this working with the attached action, but when I go to use the web interface to test it, it only returns a value for trunk_maxCalls_trunkbase.value.instance if "flatten output" is unchecked.
All the action is doing is
Call the API to get the response, based on a single string input for the URL param
Use translation map to bind the nested array into a variable
In the success template, take the first entry from the array, to simplify the output format of the data action to a single object