Ungroup A Table Stored In A Cell [object, Object]

Input collection: myMeetingRooms47

Infovalue
This is a list of meeting rooms[object Object], [object Object]…

Note: [object Object], [object Object]… refers to a table stored in a cell. This is how PowerApps displays a table as text.


Output collection: mySolution47

NickNamePeopleBuilding
Redwood10Building A
Oak25Building A
Pinetree8Building B
Cedar15Building B


Solution code:

//Create a collection
ClearCollect(
    myTable47,
    {NickName: "Redwood", People: 10, Building: "Building A"},
    {NickName: "Oak", People: 25, Building: "Building A"},
    {NickName: "Pinetree", People: 8, Building: "Building B"},
    {NickName: "Cedar", People: 15, Building: "Building B"}
);

ClearCollect(myMeetingRooms47,
{info:"This is a list of meeting rooms",value: myTable47});

//Get a table stored in a cell code
ClearCollect(mySolution47,Ungroup(myMeetingRooms47,"value"));