How do i Empty an Array in scheduled Job

snowymypet
Tera Contributor

I having an array filled with Values....

I want empty the array in a schedules job.

 

g_form - i believe in not available for scheduled job as it gave me an error in background scripts when I tried 

for (var k=0; k<array_a.length; k++)
{g_form.clearValue(array_a[k]);}

1 ACCEPTED SOLUTION

palanikumar
Mega Sage

You can simply use the below code to empty an array

array_a = [];

Thanks,

Palani

Thank you,
Palani

View solution in original post

1 REPLY 1

palanikumar
Mega Sage

You can simply use the below code to empty an array

array_a = [];

Thanks,

Palani

Thank you,
Palani