-
Hi everyone, I need to know in the transformer the LOCAL ID of the channels read with the function "ChannelUtil.getChannelIds ();" |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
Get a ChannelController reference with Then call either ChannelController method:
The Channel object exposes I am curious - what is your use case for having the local channel ID? |
Beta Was this translation helpful? Give feedback.
-
You can use this in your filter/transformer (tested with v4.4.1):
|
Beta Was this translation helpful? Give feedback.
You can use this in your filter/transformer (tested with v4.4.1):
var channelController = com.mirth.connect.donkey.server.controllers.ChannelController.getInstance();
var localChannelId = channelController.getLocalChannelId(channelId);
logger.info(localChannelId);