The Sample Message Refresh Script feature allows users to update sample messages with current or dynamic data. In QIE, sample messages are typically loaded manually on the Source Node by pasting a message from the clipboard or by using the File Import option. Over time, these messages may contain outdated information such as dates or other time-sensitive values. Updating them manually can be time-consuming, especially when multiple sample messages are used. The Refresh Script allows a user to write a custom script on the Sample Message tab that modifies the message before it is used. The script can call web services, run database queries, or access System Node Tags to retrieve values such as the current date and time or other QIE system information. The refresh script can be triggered to run from both the Sample Messages dialog and from the Test Window. After the script updates the message, QIE replaces the current sample message with the returned result. The returned message must be a String, and the final line of the script should assign the updated message to the message variable, for example: message = myNewSampleMessage where myNewSampleMessage contains the refreshed sample message.