Search code examples
sql-serverdatabase-connectionmirth

How do you use global scripts/coding templates in mirth


Hi I've started using mirth, and getting the hand of what is going on. So I have mu source and now multiple destinations with filters. But in each destination it has the connection string details.

I have read that there are global scripts and coding templates so I can have the connection strings in once.

There seems to be a scripts tab in the channel. Is this the global scripts and where I could have my connection string?

If you could give me an example/screen shots then that would be really helpful.


Solution

  • Select Channels in the top navigation pan on the left side, then under Channel Tasks click Edit Global Scripts. These are scripts that apply to all channels at different stages. One of the examples, is to use Deploy Global Script to define GlobalMap variables such as source and destination folders, or to verify database connection before any channel tries to access it, etc.