This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Define XML properties | |
var xmlDetail = new Properties(); | |
xmlDetail.put("{attXmlConfigAction}",inAction); | |
xmlDetail.put("{attXmlConfigRecord}",inRecord); | |
xmlDetail.put("{attXmlConfigType}",inType); | |
xmlDetail.put("{attXmlConfigTtl}",inTtl); | |
xmlDetail.put("{attXmlConfigValue}",inValue); | |
//Replace placeholders in XML file with correct values | |
var attBody = attXmlConfigBody.getContentAsMimeAttachment().content; | |
for each (var key in xmlDetail.keys) { | |
attBody = attBody.replace(key, xmlDetail.get(key)); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment