Dear Community,
I am facing a problem in binding a collection to gallery wherein, the data is not correctly bound. ID is correctly being passed while calling flow but isn't updating correctly in list or when in gallery. It weirdly shows 000 in some cases while correct in other. What could be wrong here?
Set(MaterialDetails,Cost.Run(Right("000000000000000000" & Self.Text,18)));
UpdateIf(
MaterialCollectionUpdated,
RowId =ThisItem.RowId,
{
MaterialID:Right("000000000000000000" & Self.Text,18),
MaterialDesc:MaterialDetails.material_description,
STK3:MaterialDetails.stk3,
ItemTotal: Text( Value(MaterialDetails.stk3,"en-US") * Value(ThisItem.MaterialQuantity,"en-US"), "###,###.00", "en-US")
}
);
ClearCollect(MaterialCollection, MaterialCollectionUpdated);

//Gallery Items
Sort(MaterialCollection,RowId)