Hi 🙂,
Im wondering if it's possible to do what i'm doing here without a delegation warning.
If its not, I will look into the possibilty of auto cleaning the SPlist before it reach e.g. 1500 rows (settings are set to 2000), and store the data into a new list or something.
What I need to do is to update the status on all rows in gallery to "ForApproval". I will also use the same code for updating new statuses along the way.
My gallery has this code:
Spoiler (Highlight to read)
Filter('Timeregistrering (overtid)'; Ansatt.DisplayName = currentUser.FullName; Status = "Saved")
Filter('Timeregistrering (overtid)'; Ansatt.DisplayName = currentUser.FullName; Status = "Saved")
The code below with underlining is getting delegation warning.
Code:
Spoiler (Highlight to read)
ForAll(Gallery2.AllItems; Patch('Timeregistrering (overtid)'; First(Filter('Timeregistrering (overtid)'; Status="Saved"));
{
Status: "ForApproval";
Tittel: [@Tittel].Text;
Dato: [@Dato].SelectedDate;
Kunde: [@Kunde].Text;
SR: [@SR].Text;
Klokkeslett: [@Klokkeslett].Text;
Total: Totalt.Text;
Arbeid: [@Arbeid].Text;
Ansatt: {
'@odata.type': "#Microsoft.Azure.Connectors.SharePoint.SPListExpandedUser";
Claims: "i:0#.f|membership|" & currentUser.Email;
Department: "";
DisplayName: currentUser.FullName;
Email: currentUser.Email;
JobTitle: "";
Picture: ""
}
}
)
)
ForAll(Gallery2.AllItems; Patch('Timeregistrering (overtid)'; First(Filter('Timeregistrering (overtid)'; Status="Saved"));{Status: "ForApproval";Tittel: [@Tittel].Text;Dato: [@Dato].SelectedDate;Kunde: [@Kunde].Text;SR: [@SR].Text;Klokkeslett: [@Klokkeslett].Text;Total: Totalt.Text;Arbeid: [@Arbeid].Text;Ansatt: {'@odata.type': "#Microsoft.Azure.Connectors.SharePoint.SPListExpandedUser";Claims: "i:0#.f|membership|" & currentUser.Email;Department: "";DisplayName: currentUser.FullName;Email: currentUser.Email;JobTitle: "";Picture: ""}}))