Hi, I am trying to get the action script which will fetch the current fixlet name and print this name as an output.
for e.g. - dos echo %date%-%time% - <“NEED HERE FIXLET NAME SEARCH FOR LOGIC”> >> C:\Logs\fixletname.log
Hi, I am trying to get the action script which will fetch the current fixlet name and print this name as an output.
for e.g. - dos echo %date%-%time% - <“NEED HERE FIXLET NAME SEARCH FOR LOGIC”> >> C:\Logs\fixletname.log
Technically this retrieves the name of the action, which could be customized and may not match the Fixlet, but in most cases it should.
parameter "name"="{value of header "Subject" of action}"
This method looks up the name of the action’s source fixlet, but it’s a bit more expensive because of the lookup:
parameter "fixletName" = "{values of headers "Subject" of fixlets whose (id of it = origin fixlet id of active action) of sites as string}"
Hi @JasonWalker,
Thanks for helping me but this is not giving me the name of fixlet or the action open. Given are the results from log files.
Tue 12/24/2024-20:52:11.30 - parameter "name"
Tue 12/24/2024-20:56:27.39 - parameter "name"
Hi @hp3,
Thanks for helping me but this is not giving me the name of fixlet or the action open. Given are the results from log files.
(value of header "Subject" of fixlet whose (id of it = origin fixlet id of active action) of site of active action) as string - Tue, 24 Dec 2024 20:45:05 +0530
It definitely works on mine. Can you share the ActionScript you are trying and a few lines from the logs before and after?
Here is the action script that I am using: -
parameter "name"= "{value of header "Subject" of action}"
dos echo %date%-%time%- parameter "name" >> C:\Logs\fixletname.log
logs generated: -
Command succeeded parameter "name"= "PC1 - custom logs - Test" (action:3485)
Command started - dos echo %date%-%time%- parameter "name" >> C:\Logs\fixletname.log
Command succeeded dos echo %date%-%time%- parameter "name" >> C:\Logs\fixletname.log
Ouput I am getting is: -
Thu 12/26/2024-19:46:55.20- parameter "name"
In order for the relevance substitution to work, you need to wrap the parameter in curly braces.
dos echo %date%-%time%- {parameter "name"} >> C:\Logs\fixletname.log
Hi @JasonWalker,
Thanks for your input. That worked for me as well, but it is giving the action name. Is there any way it could give the name of the fixlet instead of action.