I have a situation where I have a gallery in a gallery. I need to pull data from the sub-gallery in a ForAll(). It does not seem to be giving me the correct data. I think this is enough to get the idea across. Perhaps there is a better way to do this?
ForAll(Gallery4.AllItems As ThisGall,
With({ThisGall8:Gallery8.Selected},
UpdateIf(SN_RMA_Notes,Index=ThisGall.Index,
If(CheckValid.Text="0",{CheckValue:99},
If(CheckValid.Text="1",
{CheckValue:1,
Line_No:ThisGall8.LineNumber,
Company:If(First(Gallery8.AllItems).CustomerName<>Trim(ThisGall.Company),ThisGall8.CustomerName),
Acctivate:1
}
)
)
)
))

Gallery8 is a result of a lookup (one record) from a thisitem.index from Gallery4. I cannot get any of the values out of gallery8 when I do the updateif(). Values do post, but they are wrong.
Edited: I should also add... Visually, the data is correct looking at the galleries on screen. Its only wrong when applying the ForAll() statement.