I have a collection colPendingChanges and it has multiple rows. Each row has multiple fields and one of them is AttributeTable which is a nested table.
colPendingChanges =
[
{fieldA: 'foo',
filedB:'bar',
AttributeTable: 'Table'}, {....}, {....}]
I'm trying to iterate through colPendingChanges and then iterate through AttributeTable to store each row into Attribute Intakes table (dataverse) but I could not find a way to access each field value of AttributeTable
But it throws the error something like
The type of this argument 'new_attributesequence' does not match the expected type 'Text'. Found type 'Error'.
Name isn't valid. 'attributeSequence' isn't recognized.
I tried display name, logical name of the field but none of them worked. Is there a better way to access field value of AttributeTable so that I can map correctly inside
ForAll(
colPendingChanges,
ForAll(
ThisRecord.AttributesTable As attributeRow ,
Patch(
'Attribute Intakes',
Defaults('Attribute Intakes'),
{
attributeSequence: attributeRow.attributeSequence // throws the error here
}
)
)
);
this is a collection and I store this whole collection into a AttributeTable of each row inside colPendingChanges

AttributeTable, but in the expression you reference it asThisRecord.AttributesTable(extra 's'). Could that be the issue?attributeRow.attributeSequence.Value