Table from AD query

I am trying to build content in a table from an AD query. I would like the content to populate after the query runs from the user input. I have gotten as far as the query and can see from a toast message the data exist, but I cannot seem to get it to generate a table with the information. We are new to Powershell Universal and while we are good with Powershell, I am slowly learning the PSU cmdlets for inputs and displaying dynamic information based on queries. Any help is greatly appreciated.

New-UDForm -Content{
New-UDTextbox -ID 'MyData' } -OnSubmit {
$Session:ProvidedID = (Get-UDElement -Id 'MyData').value
$Session:Groups = (get-ADUser $Session:ProvidedID -Properties MemberOf).MemberOf
Show-UDToast -Message $Session:Groups -Duration 5000
 $Data = @(
   @{PrefixInformation = 'User'; UserInfo = "$Session:ProvidedID"}
   @{PrefixInformation = 'Groups'; UserInfo = "$Session:Groups"}

)
New-UDTable -Data $Data
}

-Phil S.
The Pennsylvania State University

Product: PowerShell Universal
Version: 4.2.21

Components are static, mostly.
Try giving the Table an -id. and use sync-udelement to refresh the component.

Fantastic, thank you!