Hello
- Pagination Handling in Retool:
I tried to utilize pagination for data retrieval through RestAPI calls. To optimize this process, is there a built-in functionality within Retool to seamlessly receive all pages of data automatically, avoiding the need for iterative page calls?
- Nested JSON Data Reformatting:
Some API returns JSON data in a specific format with nested structures. I'm curious if Retool provides any native functionality to streamline the reformatting of nested JSON data, as in the example provided below:
(Original Format)
{
"accruedMillis": %%(color:rgb(211, 99, 99);)0%!,
"areas": [
{
"id": %%(color:rgb(211, 99, 99);)0%!,
"name": %%(color:rgb(162, 252, 162);)"string"%!,
"type": %%(color:rgb(162, 252, 162);)"string"%!
}
],
"assignedAt": %%(color:rgb(162, 252, 162);)"2024-01-10T01:50:56.445Z"%!,
"assignedTo": [
{
"id": %%(color:rgb(211, 99, 99);)0%!,
"name": %%(color:rgb(162, 252, 162);)"string"%!,
"type": %%(color:rgb(162, 252, 162);)"string"%!
}
],
"categories": [
{
"id": %%(color:rgb(211, 99, 99);)0%!,
"name": %%(color:rgb(162, 252, 162);)"string"%!,
"type": %%(color:rgb(162, 252, 162);)"string"%!
}
],
"children": [
{
"id": %%(color:rgb(211, 99, 99);)0%!,
"name": %%(color:rgb(162, 252, 162);)"string"%!
}
}
(Desired Reformatted Format)
{
"address": %%(color:rgb(162, 252, 162);)"string"%!,
"city": %%(color:rgb(162, 252, 162);)"string"%!,
"company": %%(color:rgb(162, 252, 162);)"string"%!,
"country": %%(color:rgb(162, 252, 162);)"st"%!,
"dateFormat": %%(color:rgb(162, 252, 162);)"string"%!,
"email": %%(color:rgb(162, 252, 162);)"string"%!,
"firstName": %%(color:rgb(162, 252, 162);)"string"%!,
"id": %%(color:rgb(211, 99, 99);)0%!,
"language": %%(color:rgb(162, 252, 162);)"st"%!,
"lastLoginDate": %%(color:rgb(162, 252, 162);)"2024-01-10T01:45:03.871Z"%!,
"lastName": %%(color:rgb(162, 252, 162);)"string"%!,
"name": %%(color:rgb(162, 252, 162);)"string"%!,
"phone": %%(color:rgb(162, 252, 162);)"string"%!,
"registryDate": %%(color:rgb(162, 252, 162);)"2024-01-10T01:45:03.871Z"%!,
"skills": %%(color:rgb(162, 252, 162);)"string"%!,
"state": %%(color:rgb(162, 252, 162);)"string"%!,
"status": %%(color:rgb(162, 252, 162);)"ACTIVATED"%!,
"timeZone": %%(color:rgb(162, 252, 162);)"America/New_York"%!,
"title": %%(color:rgb(162, 252, 162);)"string"%!,
"zip": %%(color:rgb(162, 252, 162);)"string"%!
}
While it seems possible to achieve this through JSON string parsing and code, I am seeking clarification if Retool offers an alternative method for this specific task.
Your insights and guidance on these matters are immensely appreciated.