---
schema_version: "1"
id: 3aa72722f4dc17b641852654157bef7b91faa8dede08041ba789e58ce850bcc2
title: getState()
collection: developer
version: current
locale: en-us
portal_url: https://docs.salesforce.com/developer/current/en-us/platform/aura-platform/guides/aura/ref-jsapi/ref-jsapi-action-getstate.md
canonical_url: https://developer.salesforce.com/docs/platform/aura-platform/guide/ref-jsapi-action-getstate.html
source_site: developer.salesforce.com
content_type: documentation
content_hash: 594fb7eb5dad667456318847bf6a312d8da7a685d453feb13988ce122afeb8d4
products:
  - Lightning Aura Components Developer Guide
  - Platform Developer Content
---

# getState()

Returns the current state of an action. Check the state of the action in the callback after an Apex action completes.

## Signature

`getState()`

## Returns

**Type: `String`** The action state.

**See Also**  


-   [Action States](https://developer.salesforce.com/docs/platform/aura-platform/controllers-server/controllers-server-actions-states.md)

