Normally trigger point for the Publish channels is Event Listener, which is save/update any record.
Question: Can we send the data using publish channel with a custom trigger point /condition ??
Answer: Yes you can. by using Maximo Automation Script.
Below is the simple tricks to call a publish channel
server = MXServer.getMXServer()userInfo = mbo.getUserInfo()whereClause = <CONDITION>server.lookup("MIC").exportData("<Publish Channel Name>", "<External System Name>", whereClause, userInfo, 1000)
---------------------------------
Another example:
micSrv = MXServer.getMXServer().lookup("MIC")server.lookup("MIC").exportData("MXPO", "LegecyApp", " ponum='"+vPONum+"' and revisionnum="+vREVNUM , micSrv.getNewUserInfo() , 1)
Note:
Mic is old service name for MIF, but still the same name