Menu
Get script context
Get script context
GET
/_script_contextUse it in a workflow
- Add a step and choose the OpenSearch connector.
- Pick the Get script context action (under core).
- Fill in the fields below, then reference the result from later steps as
{{getScriptContext.response.data}}.
Request
Query parameters
Response
Returns 200 with an object. Read it in later steps with {{getScriptContext.response.data.<field>}}.
{
"contexts": [
{
"methods": [
{
"name": "string",
"return_type": "string",
"params": [
{
"name": null,
"type": null
}
]
}
],
"name": "string"
}
]
}
Need more? See the OpenSearch guide for connection setup and behaviour shared by every action.
Was this page helpful?