Open topic with navigation

# Perform an Action

To send an action to the ACI server, you must create a `Command` object. This object stores information about the action that you want to run, including all the parameters that the action requires. For an example of how to create a `Command` object, see Create an Action.

## Create an Action

The following example shows how to create a `Command` object for the IDOL server query action. The action is `Query` and it sets the parameters `Text`, `LanguageType`, and `TotalResults`.

    Command query = new Command("query");
    query.Set("text", "Reducing heart attack risk");
    query.Set("LanguageType", "English");
    query.Set("TotalResults", true);

© 2018 Micro Focus or one of its affiliates | Send documentation feedback to Micro Focus Close Send documentation feedback To open the configured email client on this computer, open an email window. Otherwise, copy the information below to a web mail client, and send this email to swpdl.idoldocsfeedback@microfocus.com. We appreciate your feedback! Product: Topic Title: Help Topic: Feedback:

_FT_HTML5_bannerTitle.htm