I’ve tried {{ data.results }} and many similar combinations to no avail, when I type data. and attempt tab completion, retool returns hints to reference each character in the string associated with each value.
Hi there, It looks like the data is nested under the “results” key, which causes the raw JSON files to return in your table. The table components expects an array of objects or object of arrays. Since this data is nested, it needs to be converted to either one of these options. To have the table display properly, you can use a JS map function to unnest this data into an array of objects. Can you try using this code snippet in the tables data input?
{{ searchEmailByUserId.data.map(row=>row.results) }} Let us know if this doesn’t work!
Would you be able to share a screenshot of what your searchEmailByUserId.data property looks like expanded out in the left panel of the editor (opened in the top middle of the screen)? Having the error of “.map is not a function” makes me think that it isn’t an array currently