This is my attempt , but it only changes 1 row , so if I have more than 1 row of data matched it does not change them
ForAll(Master_List,Patch(Master_Profiles,LookUp(Master_Profiles,Title=Master_List[@Title]),{field_16:Master_List[@ID]}))
Title = Code and field_16 is the account_id field
So I am looping through Master_List
So if ID = 1 it has code AX2 , I then want to update all the rows in Master_Profiles , with a matching code of AX2 , and add the ID number to the AccountID field in Master_Profiles.
Master_List
ID Code
1 AX2
2 BYE
3 NJK
Master_Profiles has mulitple rows linked to the code as they are different types , so I need the account_id adding for all of them like the example below.
Code Type AccountID
AX2 A 1
AX2 B not changed
BYE A 2
NJK A 3
NJK B not changed
NJK C not changed