How to see if inbound action is being executed?

youchan
Kilo Contributor

This is regarding inbound action for receiving emails.

My goal is to write an inbound action that will run if the email is a certain email X, with a certain subject Y. I believe this can be done by setting the run conditions such that

recipients is emailX AND subjects is subject Y.

This inbound action is set as active and is for the incident table.

I am testing this in my personal instance. I am send the email and it shows up in my inbox.

However, I don't think the inbound action is executing. In the script, i have gs.log("test message") and it doesn't show up in system logs.

How can I tell for certain if an inbound action is executing or not?

And if it is not executing, will it tell me why it is not executing?

Thanks

1 ACCEPTED SOLUTION

sb1186
Kilo Guru

Hi Youchan,



If you go to the received email, from System Logs > Emails,


find_real_file.png


and check the Email Log, in the related list of that received email, it will show you what did the system process and what did it ignore.


find_real_file.png


You can start troubleshooting from here. It will also show you if it skipped your inbound email action or not.



PS: Mark this answer as Correct if it solved your query or hit Like/Helpful depending upon the usefulness of the response.



Regards
Supriya Bisht


View solution in original post

8 REPLIES 8

sb1186
Kilo Guru

Hi Youchan,



If you go to the received email, from System Logs > Emails,


find_real_file.png


and check the Email Log, in the related list of that received email, it will show you what did the system process and what did it ignore.


find_real_file.png


You can start troubleshooting from here. It will also show you if it skipped your inbound email action or not.



PS: Mark this answer as Correct if it solved your query or hit Like/Helpful depending upon the usefulness of the response.



Regards
Supriya Bisht


youchan
Kilo Contributor

Thanks for replying.



It seems that the received email has 0 Email Logs. Why is this so, when I have an active inbound action that should be applyign to this email?


Would you mind sharing the conditions used in the inbound action along with the scripted actions that it is expected to take?


Also, I hope you are already taking care of the fact that the inbound action is catering to the received email according to if it's a New, Reply or a Forward email.



Regards
Supriya Bisht


youchan
Kilo Contributor

find_real_file.png


this is my conditions.


this inbound action is active, record action, and incident table.


in actions tab, it just has the following:





(function runAction(/*GlideRecord*/ current, /*GlideRecord*/ event, /*EmailWrapper*/ email, /*ScopedEmailLogger*/ logger, /*EmailClassifier*/ classifier) {




// Implement email action here


gs.log("SOS--\n");


gs.log("test message);




})(current, event, email, logger, classifier);