Ad Widget

Collapse

Non-user macros in preprocessing scripts

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • SntRkt
    Junior Member
    • Jan 2021
    • 1

    #1

    Non-user macros in preprocessing scripts

    Hey guys, I have an ugly hack in place that I would like to fix. I needed the {HOST.ID} available to preprocessing scripts. From what I can tell, only user macros are supported. I had to make a script that calls the API and creates a static user macro with the host ID value, then reference that user macro in the javascript code of the preprocessing script. It's not portable.

    Does anyone know of a graceful way to access {HOST.ID} (or {HOST.HOST}) within a preprocessing script? I tried creating a user marco with the value: {HOST.ID}, but that didn't work.

    Thanks.
Working...