Post error/info message from workflow or script include to the service portal

johnfeist
Mega Sage
Mega Sage

Maybe I'm missing something.  I have a catalog item that gets fulfilled via a workflow.  One step of the workflow calls a script include.  At a certain point I have a check for a return code indicating error or success.  If an error is found, the script has a gs.addErrorMessage() statement.  Unfortunately, that message does not post to the portal.  I've also tried posting the message from the script step in the workflow that calls the script.  I know that the error is being caught and the message statement executed because I have a debugging statement immediately after it which appears in the logs.  I've also checked the error logs and found none.  I tried setting the message duration to zero to be sure that I wasn't missing any.  Any suggestions as to what's going on and how to get around this are greatly appreciated.

Hope that helps.

:{)

Helpful and Correct tags are appreciated and help others to find information faster
1 REPLY 1

Eckhard
Tera Contributor

Hi,
I think the workflow is executed in the backend, so you can not use gs. do post a message in the service portal for the user. Maybe an option for you is to just write a work_note to the current object e.g.: RITM, then the user sees this in the service portal.

Is that what you mean?