Forum Discussion

Cole_McDonald's avatar
Cole_McDonald
Icon for Professor rankProfessor
2 years ago
Solved

Creating a propertySource to populate a NOC widget in a dashboard... need ## in a string.

The NOC widget items have a field that requires me to have the string "##RESOURCEGROUP##" pushed through the JSON into the NOC Item… since I’m using a propertySource to run the script on a schedule (I have a larger VM with a collector with a longer script timeout just for doing deeper scripted work through the API or Full Domain sweep types of things that will take more time), The LM System is going to try to replace that at run time rather than returning the explicit string.

Who knows the correct escape sequence for turning that into a string literal on its way into the RestApi Patch?

Scripting questions through support is best effort, and I don’t usually come with easy questions.