I have a workflow currently that takes a script input, sends it to an Action -> Run Script, and I want this to post a notification to the user depending on whether the action on the script was successful. It's an authentication script.
Using David Ferguson's very helpful library, I have this script, which I was hoping as I'd passed a string to the $arg parameter of the result method, this would be passed along to the notification, but it's not happening. This window keeps telling me that I need to do something with "{query}" but I don't know how to do this on output and I can't find a sample script that sends custom text to a notification so I'm a bit stuck now! Can anyone advise on how I send custom text to a notification in this way?
Thanks!