Renaming data api fields
Options
![Demir](https://us.v-cdn.net/6037124/user_avatars/2182441.jpg)
Demir
Member ✭
Hi,
I've a table that has several columns.
A remote service calls my data APIs and queries the id and the name. However, the service requires that the json fields are "key" and "option".
Is there a way in the "Query all records" to rename "id" and "name" to "key" and "option"? I could not find a field in the "outputs" screen.
Or do I have to build a new json from the database?
I've a table that has several columns.
A remote service calls my data APIs and queries the id and the name. However, the service requires that the json fields are "key" and "option".
Is there a way in the "Query all records" to rename "id" and "name" to "key" and "option"? I could not find a field in the "outputs" screen.
Or do I have to build a new json from the database?
Comments
-
You can use evals or the update variable function to add key and option to the object or update those as new field names -
https://youtu.be/D3SWJYUYyP0
Categories
- All Categories
- 53 ? Announcements
- 47 ? Releases
- 37 ? Welcome
- 983 ? Help! I'm a Noob
- 125 ? No-Code Front-Ends
- 633 ? Working with APIs
- 439 ? Transforming data
- 126 ? Connect Xano to ...
- 50 ?? Find an Expert
- 348 ❓Other questions
- 35 ? Security
- 22 ✂️ Snippets
- 19 ? Showcase
- 7 ?️ Xano Chatter
- 62 ? Video Tutorials
- 171 ? Request a feature
- 229 ? Report a Bug
- 19 ? Templates & Extensions
- 7 ? Feedback