@Swathi_Nalla
Let's get the collections and ForAll's out of the way for now...you most likely don't need them for anything anyway.
What is illusive in your formula comparing to your original JSON tree is that you have no Value column.
First tell me more about collectionName. Where is that being populated? Is that from a Flow or API call being put into some collection?
From the look of your data, you would not have a table returned in data...you have a data, response and Predict record.
{data:
{response:
{Predict:
{sc: {id: 2, Name: "test1", sections: [{sectionid....etc..., Actions: [{...}]] ] },
resolutions: {},
ref: {}.
PN: {}
}
}
}
However, if you are trying to stuff this into a collection...then the whole thing automatically becomes a table (because a collection is an in memory database table!)
So how are you pulling this in?