scheduled script..is doing the right thing but not...
# suitescript
r
scheduled script..is doing the right thing but not able to send mail
e
Do you working on SB environment or Prod?
r
testdrive
that is not SB right?
e
Demo account I think, If I'm not wrong those accounts doesn't send email anyone else than current admin's email address.
r
yeah, i changed the mail id to myself ... i am receiving the task record mail but not in scheduled script
scheduled_customer_sales_rep.js
what logic do i use here to sent to myself, i guess runtime.getCurrentUser().id
i have included my mail id but still nothing
r
You can use
runtime.getCurrentUser().id
if you are executing the script on demand. If it runs on a schedule, it will be
-4
which is the internal id for
-System -
Also in my experience, Demo accounts, the one that have TSTDRV in the account id do not send emails from scheduled or map reduce scripts