email.body_text is not working in my Inbound email Action.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-14-2024 11:53 PM
email.body_text is not working in my Inbound email Action. As soon as controller is reaching to execute this line of code it isn't proceeding further.
And, I have used below links for references. Where it is clearly mentioned to use email.body_text to access body of an email.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-15-2024 12:09 AM
Hi,
Could you please share your code.
Thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-15-2024 01:58 AM
Hello, @Dhananjay Pawar, here's my Script. This is an Inbound Email Action.
(function runAction( /*GlideRecord*/ current, /*GlideRecord*/ event, /*EmailWrapper*/ email, /*ScopedEmailLogger*/ logger, /*EmailClassifier*/ classifier) {
gs.info("Email Body " + email.body_text);
})(current, event, email, logger, classifier);
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-15-2024 02:05 AM
Hi,
instead gs.info use gs.log("Email Body " + email.body_text);
then check the system log there you will get the details.
Thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-15-2024 02:12 AM
Yes, @Dhananjay Pawar I have figured out the solution. Thanks for the help.
So, was using email.body_text in Custom Scope. Now, after trying out in Global scope it worked.