Hi All,
Having issue with following code in a button. Spent hours and I’ve narrowed it down to a specific line “Person.Contains(TimeEmployees)”
If I remove that portion, code runs. I dont understand why that line would cause the code to break.
For reference, “TimeEmployees” field is from Controls → Multiple Select Button.
RunActions(
[Timesheet Record UnSubmitted]
.formulamap(
Switchif(
And(
Date >=[Timesheet Start Date],
Date <= [Timesheet End Date],
Person.Contains(TimeEmployees)
),
[Timesheet Submitted]
.AddRow(
[Timesheet Submitted].Date,
Date,
[Timesheet Submitted].Person,
Person,
[Timesheet Submitted].[Project/Customer],
[Project/Customer],
[Timesheet Submitted].[Service Items],
[Service Items],
[Timesheet Submitted].Hr,
Hr
)
)
),
DeleteRows([Timesheet Record UnSubmitted].Filter(Person.Contains(TimeEmployees)))
)