hello,
I have the following JSON (coming from an online form):
{
"headers": {
"Connection": "Keep-Alive",
"Expect": "100-continue",
"Host": "prod-11.australiasoutheast.logic.azure.com",
"User-Agent": "CognitoForms",
"X-Requested-With": "XMLHttpRequest",
"Content-Length": "1078",
"Content-Type": "application/json"
},
"body": {
"Form": {
"Id": "1",
"InternalName": "Testing",
"Name": "Testing"
},
"$version": 8,
"$etag": "W/\"datetime'2022-11-14T11%3A01%3A04.8220238Z'\"",
"Name": "kav test",
"Email": "kav@somewhere.com",
"License": "Mailbox",
"Office": "Sydney",
"Entry": {
"DateCreated": "2022-11-14T11:01:04.508Z",
"DateSubmitted": "2022-11-14T11:01:04.508Z",
"DateUpdated": "2022-11-14T11:01:04.508Z",
},
"Id": "1-1"
}
}
What I would like to do is convert the data into a table. However, the number of fields may change from request to request and I want to be able to handle that dynamically. The logic is fairly simply, use all fields under 'body', except for; Form, $version, $etag, Entry and ID (so in this case create a table from fields; Name, Email, License, Office).
Tried doing this with a loop and conditional statement but didnt get very far...