Retrieving the Action ID of an Action

(imported topic written by cj6591)

I am wanting to get the action ID of a job to use as part of a file identifier but cannot find any reference on how to access this value.

What I am trying to do …

I am doing a file search of the hard drive of the client machines and writing the results to a log file.

I want a generic task that I can just copy and paste a list of file names into a section of the file and run it and then use the archive feature of BigFix to uplaod the results files to the server.

I have search and upload functions working.

Now I am trying to find the code to get the action ID to dynamically identified the log files for multiple searches.

The reason for hte action ID is that on the server I am running a process that collects all the results from a “job”/action and merges them into one results file.

(imported comment written by jessewk)

Here’s an example that will produce a file named “results_123.txt” where 123 is the action id:

createfile until END_CREATE

example text

END_CREATE

move _createfile results{id of active action}.txt

(imported comment written by cj6591)

Perfect … exactly what I was looking for.

Thanks!