web stats
Mirth Community - View Single Post - Unable to get ChannelName in Deploy Script
View Single Post
  #2  
Old 06-03-2014, 08:31 AM
seaston seaston is offline
OBX.3 Kenobi
 
Join Date: Feb 2010
Location: London, UK
Posts: 168
seaston is on a distinguished road
Default

Actually, this seems to work:


Code:
function getChannelName(channelID) {
var controller = com.mirth.connect.server.controllers.ControllerFactory.getFactory().createChannelController();
var channelName = controller.getChannelById(channelID).name;
return channelName;
}
but it would be nice if this function were possible using ChannelUtil
Reply With Quote