Unable to call mail script in scoped application

samadam
Kilo Sage

I have a mail script that I am calling from notification but get a message script is not found. I tried to call it using scope name like ${mail_script:my_scope.getinfo} but did not work. How can i do this?

1 ACCEPTED SOLUTION

Allen Andreas
Administrator
Administrator

Hi,

Firstly, as others have mentioned, you shouldn't need to call your scope within the mail script, you just need the mail script name.

Secondly, I've seen this issue when people copy and paste code from somewhere else in to their notification.

Within your notification, please open that and go to the "What it will contain" tab, then click the "<>" (source code) button in the Message HTML section:

find_real_file.png

And check to see if there are any <span> tags, etc. around your mail script call. If so, please remove them.

Please mark reply as Helpful/Correct, if applicable. Thanks!

 


Please consider marking my reply as Helpful and/or Accept Solution, if applicable. Thanks!

View solution in original post

11 REPLIES 11

Hi Samadam,

Mark is correct and it should work without the scope name prefixing in the mail script. Please find the sample below which you can use:

${mail_script:getinfo}//make sure that getinfo is the exact name of your mailscript or replace with the exact name of the mail script

 

Regards,

Alok

nitish99
Tera Guru

Hi Samadam,

You can call directly the email script no need to add the scope.

Regards,
Nitish

samadam
Kilo Sage

That did not work so I was trying to see if calling with scope would work.

Allen Andreas
Administrator
Administrator

Hi,

Firstly, as others have mentioned, you shouldn't need to call your scope within the mail script, you just need the mail script name.

Secondly, I've seen this issue when people copy and paste code from somewhere else in to their notification.

Within your notification, please open that and go to the "What it will contain" tab, then click the "<>" (source code) button in the Message HTML section:

find_real_file.png

And check to see if there are any <span> tags, etc. around your mail script call. If so, please remove them.

Please mark reply as Helpful/Correct, if applicable. Thanks!

 


Please consider marking my reply as Helpful and/or Accept Solution, if applicable. Thanks!

Hi again,

Just wanted to check-in on this. If I've helped guide you correctly, please mark that reply as Correct. This helps others in the community see the correct answer (at least for you) easily.

Thanks!


Please consider marking my reply as Helpful and/or Accept Solution, if applicable. Thanks!