Hi all
I've just got into scripting, and have fallen at the first hurdle.
Hi all
I've just got into scripting, and have fallen at the first hurdle.
Best answer by Matt_Lister
To answer my own question for anyone else struggling to work it out. getCellValueAsString() was the solution for me. I don't know if this is the best way of doing it. But this is how you can get whatever field values you need.
I'm printing them here. But you could instead, add each recordDetails to an array.
(disclaimer, I'm not an expert)
Additionally I believe it is preferable to only load the fields you need, to save memory. So you should replace line 2 this code to something like:
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.