Hub variables in a log

Hi to all,

Simple and may be stupid question: How do I insert the state of Hub variables in a massage of the command 'Log' ? I tried %variablename% or %{variablename}% but none of them worked...

Are you referring to an option in an RM action? Can't say I've used anything like that myself, but just wanted to clarify for anyone else who may be able to help.

Yes, the log command in RM 5

Do you want to provide a screenshot of what you are trying to do?

Without having looked into this myself, apart from some light reading of some of the release notes (where I couldn't find the log option)... I am wondering whether, in the short-term, you may be able to set a local variable to the value of the hub variable, then use the local variable when writing to the log? Not something I would want to see you needing to do long-term, just until we figure out how to use the hub variable directly in the log action, or a change is made to RM to allow for the hub variable to be referenced.

Simon

Yes, here it is:

The log shows my messages, but with the %xxx% text that I want to be replaced by the value of the variables.

Pipes (the vertical bar you're using as a separator) are sometimes used as special characters in programming. Have you tried it without those, or log only one value with no other text?

1 Like

The usage is %variable-name%. variable-name is case sensitive.

Please post a screenshot of logs where this does not work, complete with Action Logging enabled.

Here's mine:

"date time" is a DateTime variable, "now" means current time.

I'm sorry, it's my vault.


I just saw the 2nd line and thought it is not working. I didn't realize that this is the log for the command and the first line is the log entry that it creates...
Thank you for your reply.

Yeah, when you have Action logging on, it does get confusing, because of the log for the Action and the log from the action running.