The CreatorCon Call for Content is officially open! Get started here.

Inbound email action not adding comment to catalog task

Jared Wason
Tera Guru

Hello, I have created an inbound email action on the sc_task table to update the parent RITM state and to add a comment to the catalog task. The parent RITM state gets updated so I know the inbound email action is processing properly. However the comments are not getting appended to the catalog task as expected despite copying the same line of code directly from another working inbound email action. I tried asking on the community forums but was not able to solve the issue. Please see attached screen shots. The issue seems to be on lines 11 and 12 of the inbound email action script. Any help or suggestions are greatly appreciated, thanks.

find_real_file.pngfind_real_file.png

1 ACCEPTED SOLUTION

Is the task already close when you run this inbound action?


Please mark this response as correct or helpful if it assisted you with your question.

View solution in original post

12 REPLIES 12

SanjivMeher
Kilo Patron
Kilo Patron

I would suggest, look at the email log in the System Logs->Emails. It would tell you if it entered your inbound action. 

I would also suggest to add gs.info() for ex

at line no 5, you can add, gs.info('++++++Subject Matches++++++');

 

find_real_file.png


Please mark this response as correct or helpful if it assisted you with your question.

I have verified that my inbound action is processing. The part of the inbound action that updates the state of the requested item is working, its just the part (lines 10-12) that is not working. I have tried changing line 11 of my inbound action to "current.comments = ""The caller has finished accessing requested user data;" But still no comment gets added to the task. Any other ideas are greatly appreciated. 

Just for testing, instead of doing 

current.comments=='The caller has finished accessing requested user data';

can you do

current.description=='The caller has finished accessing requested user data';

 

This is just to verify, if the current.update() is working fine.


Please mark this response as correct or helpful if it assisted you with your question.

I tried using current.description and a variety of other changes (all one at a time), and none were updating for me. Is there something other than current.update() I could try? 

 

find_real_file.png