Sunday 8 March 2015

Steps to throw warning message using automation script

Add the line below to the imports:


from psdi.util import MXApplicationException

then add the following:


mxae = MXApplicationException(msggroup, msgkey, msgparams)
mbo.getThisMboSet().addWarning(mxae)


Choose the desired msggroup ,msgkey and pass appropriate value of msgparams

1 comment:

  1. Neat. It works in self service center validation scripts.

    ReplyDelete