InvokeScreenAutomation - Amazon Honeycode


The InvokeScreenAutomation API allows invoking an action defined in a screen in a Honeycode app. The API allows setting local variables, which can then be used in the automation being invoked. This allows automating the Honeycode app interactions to write, update or delete data in the workbook.

Request Syntax

POST /workbooks/workbookId/apps/appId/screens/screenId/automations/automationId HTTP/1.1 Content-type: application/json { "clientRequestToken": "string", "rowId": "string", "variables": { "string" : { "rawValue": "string" } } }

URI Request Parameters

The request uses the following URI parameters.


The ID of the app that contains the screen automation.

Length Constraints: Fixed length of 36.

Pattern: [0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}

Required: Yes


The ID of the automation action to be performed.

Length Constraints: Fixed length of 36.

Pattern: [0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}

Required: Yes


The ID of the screen that contains the screen automation.

Length Constraints: Fixed length of 36.

Pattern: [0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}

Required: Yes


The ID of the workbook that contains the screen automation.

Length Constraints: Fixed length of 36.

Pattern: [0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}

Required: Yes

Request Body

The request accepts the following data in JSON format.


The request token for performing the automation action. Request tokens help to identify duplicate requests. If a call times out or fails due to a transient error like a failed network connection, you can retry the call with the same request token. The service ensures that if the first call using that request token is successfully performed, the second call will return the response of the previous call rather than performing the action again.

Note that request tokens are valid only for a few minutes. You cannot use request tokens to dedupe requests spanning hours or days.

Type: String

Length Constraints: Minimum length of 32. Maximum length of 64.

Pattern: ^(?!\s*$).+

Required: No


The row ID for the automation if the automation is defined inside a block with source or list.

Type: String

Length Constraints: Fixed length of 77.

Pattern: row:[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}\/[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}

Required: No


Variables are specified as a map where the key is the name of the variable as defined on the screen. The value is an object which currently has only one property, rawValue, which holds the value of the variable to be passed to the screen. Any variables defined in a screen are required to be passed in the call.

Type: String to VariableValue object map

Key Length Constraints: Minimum length of 1. Maximum length of 255.

Key Pattern: ^(?!\s*$).+

Required: No

Response Syntax

HTTP/1.1 200 Content-type: application/json { "workbookCursor": number }

Response Elements

If the action is successful, the service sends back an HTTP 200 response.

The following data is returned in JSON format by the service.


The updated workbook cursor after performing the automation action.

Type: Long


For information about the errors that are common to all actions, see Common Errors.


You do not have sufficient access to perform this action. Check that the workbook is owned by you and your IAM policy allows access to the resource in the request.

HTTP Status Code: 403


The automation execution did not end successfully.

HTTP Status Code: 400


The automation execution timed out.

HTTP Status Code: 504


There were unexpected errors from the server.

HTTP Status Code: 500


The request timed out.

HTTP Status Code: 504


A Workbook, Table, App, Screen or Screen Automation was not found with the given ID.

HTTP Status Code: 404


The request caused service quota to be breached.

HTTP Status Code: 402


Remote service is unreachable.

HTTP Status Code: 503


Tps(transactions per second) rate reached.

HTTP Status Code: 429


Request is invalid. The message in the response contains details on why the request is invalid.

HTTP Status Code: 400

See Also

For more information about using this API in one of the language-specific AWS SDKs, see the following: