0 Replies Latest reply on Jan 5, 2017 6:33 AM by florian1

    Hiding "Message from" in Run Program Output

    florian1 Expert

      Is it possible to only show the program's output instead of "Message from {scriptName}:<br><br>" + {message}?

       

      I have a few external programs which are executed during workflows and some of them rely on the return code to execute conditional actions afterwards.

      I didn't find an option to only save the return code yet.

       

      I know there are workarounds (such as substring(), FirstRegexMatch() or HEAT API).

      But I was hoping for an easy way instead.

       

      In C#, it currently looks like this:

      keyValuePair = new KeyValuePair<string, string>("Information", S._S("Message from {0}:<br><br> {1}", (object) ((QuickActionMetaData) meta).get_Name(), (object) scriptResultDef.get_OutputMessage()));
      
      

       

      But in fact I only need this output:

      keyValuePair = new KeyValuePair<string, string>("Information", S._S({0}", (object) scriptResultDef.get_OutputMessage()));