I'm looking for an Apps Script to auto-populate a User Field (Requester) with the name of the currently logged in user - the one creating the record.
I've followed the sample in the Dev Apps Scripts page (below), but the field is not populating.
The scripts is saving with no errors, and I've tried both Before Insert and After Insert. I want the name to display before saving the record so the user will have one less field to click on (unless they want to change the name).
How do I change a value in the current record ?
currentValues["Status"] = “Active” currentValues[“Age”] = 20;
John McGarvey shared this idea · Oct 24, 2016