Skip to content

/AWS1/CL_HNC=>INVOKESCREENAUTOMATION()

About InvokeScreenAutomation

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.

Method Signature

IMPORTING

Required arguments:

IV_WORKBOOKID TYPE /AWS1/HNCRESOURCEID /AWS1/HNCRESOURCEID

The ID of the workbook that contains the screen automation.

IV_APPID TYPE /AWS1/HNCRESOURCEID /AWS1/HNCRESOURCEID

The ID of the app that contains the screen automation.

IV_SCREENID TYPE /AWS1/HNCRESOURCEID /AWS1/HNCRESOURCEID

The ID of the screen that contains the screen automation.

IV_SCREENAUTOMATIONID TYPE /AWS1/HNCRESOURCEID /AWS1/HNCRESOURCEID

The ID of the automation action to be performed.

Optional arguments:

IT_VARIABLES TYPE /AWS1/CL_HNCVARIABLEVALUE=>TT_VARIABLEVALUEMAP TT_VARIABLEVALUEMAP

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.

IV_ROWID TYPE /AWS1/HNCROWID /AWS1/HNCROWID

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

IV_CLIENTREQUESTTOKEN TYPE /AWS1/HNCCLIENTREQUESTTOKEN /AWS1/HNCCLIENTREQUESTTOKEN

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.

RETURNING

OO_OUTPUT TYPE REF TO /AWS1/CL_HNCINVSCREENAUTOMAT01 /AWS1/CL_HNCINVSCREENAUTOMAT01