Hi there,
I've created a collection from a gallery with 2 columns: API number and Well Name. I've built out my app using just the API name from the collection as the primary name column in my table. I'd like to now add the Well Name column from the collection to my table as well, but am having trouble doing so.
The script to grab the data from the gallery:
Collect(SelectedWellsZ,{
selAPI:ThisItem.'API Number',
wellName:ThisItem.'Permitted Legal Well Name'})
The script I wrote attempting to now patch the Well Name back to my table as a column labeled Permitted Well Name:
ForAll(SelectedWellsZ, Patch('Mudlogging Performance',
If(CountRows(Filter('Mudlogging Performance',API=selAPI))>0,LookUp('Mudlogging Performance',API=selAPI),Defaults('Mudlogging Performance'))
,{
API:selAPI,
'Permitted Well Name':wellName
}
));
Navigate(PerfReview_2)
The script does not have any errors, but it does not write Well Name back to my table as Permitted Well Name. What am I missing??
Thank you! Appreciate any and all insight.
Kate