# SecondaryAction

**Kind**: interface | **Module**: [Search](https://docs.interop.io/desktop/reference/javascript/search/index.md)

**Source**: https://docs.interop.io/desktop/reference/javascript/search/secondaryaction/index.html

Describes an already registered Interop method to be assigned as a secondary action to a search result.

## Properties

- **`method`** (`string`, required)
  Name of an Interop method to assign as an action for a search result.
- **`name`** (`string`, required)
  Name for the assigned action. May be used to differentiate between actions on the client side.
- **`params`** (`any`, optional)
  Arguments to be passed to the specified Interop method when a search client invokes it.
- **`target`** (`{ instance: string } | "all"`, optional)
  Defines the Interop servers that will be targeted when invoking the specified method. Set to `"all"` to invoke the method on all Interop servers offering it.
  Alternatively, you can pass the Interop ID of a specific Interop server you want to target.
