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
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
Neat. It works in self service center validation scripts.
ReplyDelete