I'm a little stuck. If I remove the forall it works perfectly but when I add forall it gives a failure that the column is not accessible. The even stranger part is that I use the same gallery and forall/patch above with a different table but edit records instead of create new and have no problems. I tried changing this to edit but I still get the error. Any help is appreciated.
ForAll(galWorkItems_1.AllItems,
Patch(
'Project Activities',
Defaults('Project Activities'),
{
Project: gblProject,
// 'Work Item': Label1.Text,
'Work Item':LookUp('Project Work Items',Text(msft_projectworkitemid)=Label1.Text),
Name: Left(
WorkItemUpdate_1.Text & ": " & lblWorkItemTitle_1.Text
,
100
),
Description: WorkItemUpdate_1.Text & ": " & lblWorkItemTitle_1.Text,
Code: "0" //code for custom update
}
)
)
I'm convinced I'm forgetting something simple but for the life of me can't see it.
Thanks