Basic Information
Last updated
Last updated
To view a command of a particular payload type, access it via the following:
Operational Management -> Payload Management
Select the "Commands" dropdown for the payload type you're interested in
Select "Edit"
Use the "Select" option at the top to pick the exact command
Take the following Apfell-jxa upload
command for example:
The description
provides some context as to what the command does or how it does it. The help
section shows how to call the command. These two fields are presented the user if they type help upload
while interacting with a callback based on the apfell-jxa payload type. The toggles indicate that this command does not need admin level permissions to execute and that this command does not exit the callback. The command that does have the toggle switched for is exit
will be tasked to the agent if the user select the GUI option to exit callback
.
The other sections are discussed in greater detail in the following sections.
All PayloadTypes get 3 commands for free - clear
, set
, and tasks
. The reason these two commands are 'free' is because they don't actually make it down to the agent itself. Instead, they cause actions to be taken on the Apfell server.
The clear command does just that - it clears tasks that are sitting in the queue waiting for an agent to pick them up. It can only get tasks that are in the submitted stage, not ones that are already to the processing stage because that means that an agent has already requested it.
clear
- entering the command just like this will clear the last task you entered
clear all
- entering the command just like this will clear all
tasks you've entered on that callback that are in the appropriate stages.
clear #
- entering the command just like this will attempt to clear the task indicated by the number after clear.
If a command is successfully cleared by this command before an agent can get to it, then that task will get an automated response stating that it was cleared and which operator cleared it. The clear task itself will get back a list of all the tasks it cleared.
The set command allows you to set certain properties on a callback:
set description [some description here]
- this allows you to adjust the description for a callback for all operators
set description reset
- this will reset the description back to the default tag
value specified when creating the associated payload
set parent #
- this will set the current callback's parent callback to the one indicated by the number. These parent-child relationships can be seen from the analytics page and make it handy to keep track of which callbacks spawned which other callbacks.
The tasks command simply allows you to get a list of all tasks for the current callback that haven't been picked up by an agent. You can already see this by looking at the task's status, but sometimes it's useful to get a concise list.