How do you call a script include from an inbound action condition?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā07-15-2019 06:11 AM
I have an extreremely simple script include that isn't being called in an inbound action:
function checkEmail(txt) {
gs.log('Check Email: started: ' + txt + ' :::: ' + current.body_text);
return false;
}
It is client callable and available for all scopes.
For the inbound email condition, I am using Body Text contains javascript: global.checkEmail(email.body_text)
and after processing the email a few times, the test log never shows up in the script logs so I must not be calling it right.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā07-15-2019 06:47 AM
try with is instead of contains with below format
====
javascript:new ScriptInclude().functionname();
====
Regards,
Monika
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā07-15-2019 06:33 AM
Hi wilber,
Please go through the below link
Hope it helps
Thanks
Sameekshya
Mark Correct if this solves your issue and also hit Like and Helpful if you find my response worthy based on the impact.