Hi, I am calling script in an automation command template whithout any parameters this way:
{CALL:abr.getUserStatus()}
I need to add a parameter in the script call, but when I do that, the parameter is not passed along the call. I need to send the current user id in the call ({:CURRENTUSERID}.
Those are 2 different bethods of triggering.
I would first check that paramiter is available in the entiry screen command button senario by senting just the tag as command value to a command rule with a show message.
Make sure the tag is valid in your use case.
Next test would be to pass a static value to test the flow using a known value.
If that works posibly issue in that perticular instance/senario of using compounded curlie expressions.
CURRENTUSERID is valid, I tested it before and works, also I tested with a static value and it works.
Where can I find documentation about the tags that I can use in each place?
I’m having issues firing a rule from an automation command in the first navigation screen so I switched to an entity screen, but now the tag does not work. Any idea?
For tags you can use {DATE:format} where format is what DateTime.ToString(string) accepts in C#.
C#'s DateTime object is exposed in the scripting engine. So var dt = DateTime.Now.ToString(); will assign the date and time to dt in the current culture’s format. You can use a string to format the date in ToString’s overloaded constructor. So DateTime.Now.ToString('yyyy-MM-dd HH:mm:ss.fff') will return Now in SQL’s date format.