We're reclaiming inactive PDIs to keep them available for active builders. Learn what's changing, who's affected, and how to protect your work. Read More

how to test email.to condition in dev instance

avanis
Kilo Contributor

i am trying to test an forward type inbound action having condition in the script:

createRequest();

function createRequest() {

if(email.to.toString().toLowerCase().indexOf("ssc-atp@test.com") > -1){

But i am not sure how to test this as i am forwarding mail to this user and not to instance.

i am not getting anything in the email logs as well.

Any guide how to test this scenario...

5 REPLIES 5

avanis
Kilo Contributor

I have set up the condition and email getting triggered to respective email id, but still new RITM not getting created and logs are also not printing.



createRequest();


function createRequest() {


  gs.log("outside");


if(email.recipients.toLowerCase().indexOf("ssc-atp@test.com") > -1){


gs.log("nsideif)");