# get_result

Source: https://docs.q-ctrl.com/references/fire-opal/fireopal/fireopal.get_result

```python
fireopal.get_result(action_id)
```

Retrieve the result of a previously submitted Fire Opal action.

Use this function to fetch the outcome of an action that was submitted
asynchronously via any Fire Opal function that returns a [`FireOpalJob`](https://docs.q-ctrl.com/references/fire-opal/fireopal/fireopal.FireOpalJob.md#fireopal.FireOpalJob) instance
(for example, [`fireopal.execute()`](https://docs.q-ctrl.com/references/fire-opal/fireopal/fireopal.execute.md#fireopal.execute)). If the action is still in progress,
this function blocks until the action completes and the result becomes available.

### Parameters
**action_id** (*int* *or* *str*) – The unique numeric identifier associated with the action. You can
find this value from the Fire Opal activity monitor ([`fireopal.activity_monitor()`](https://docs.q-ctrl.com/references/fire-opal/fireopal/fireopal.activity_monitor.md#fireopal.activity_monitor)),
or from the [`FireOpalJob.action_id`](https://docs.q-ctrl.com/references/fire-opal/fireopal/fireopal.FireOpalJob.action_id.md#fireopal.FireOpalJob.action_id) of any Fire Opal function
that returns a [`FireOpalJob`](https://docs.q-ctrl.com/references/fire-opal/fireopal/fireopal.FireOpalJob.md#fireopal.FireOpalJob) instance.
### Returns
*dict[str, Any]* – The action result dictionary. The structure of this dictionary matches
the result that would have been returned by calling the
[`result()`](https://docs.q-ctrl.com/references/fire-opal/fireopal/fireopal.FireOpalJob.result.md#fireopal.FireOpalJob.result) method on the
[`fireopal.FireOpalJob`](https://docs.q-ctrl.com/references/fire-opal/fireopal/fireopal.FireOpalJob.md#fireopal.FireOpalJob) instance returned from the function
that created the action. Refer to the `Returns` section of the appropriate
function’s documentation for the exact structure of this dictionary.
### Raises
**QctrlArgumentsValueError** – If `action_id` is not a valid numeric value.

## Examples

Retrieve the result of a previously submitted action using its ID:

```pycon
>>> result = fireopal.get_result(action_id=12345)
>>> print(result["results"]) # assuming fireopal.execute produced this action
[{'00': 512, '11': 488}]
```
