---
sourceDocument: Australia API Reference
sourceDocumentLink: https://servicenow-prod.fluidtopics.net/r/de-DE/api-reference

 Release :

    - australia

ft:locale :

    - de-DE

ft:publication_title :

    - Australia API Reference

ft:clusterId :

    - crapiref

bundleId :

    - crapiref

workflow :

    - Creator


---

# FlowScriptAPI - Scoped

# FlowScriptAPI - Scoped {#ariaid-title1}

* Freigeben Version: Australia
* 
* Aktualisiert 12. März 2026
* 
* ![](https://www.servicenow.com/docs/portal-asset/ico-clock) 1 Minute Lesedauer

The FlowScriptAPI API provides a method to return the context ID of the running flow.

You cannot instantiate objects of this type. Objects of this type are created automatically
and are accessible only in script steps and inline scripts.

## FlowScriptAPI - getContextID() {#ariaid-title2}

Returns the context ID of the running flow.
{#FlowScript-getContextID__table_uqq_zkr_nlb__entry__3}

| Name | Type | Description |
|-|-|-|
| None |   |   |
[Tabelle : 1. Parameters]

{#FlowScript-getContextID__table_uqq_zkr_nlb} {#FlowScript-getContextID__table_vqq_zkr_nlb__entry__2}

| Type | Description |
|-|-|
| String | The sys_id of the running flow. |
[Tabelle : 2. Returns]

{#FlowScript-getContextID__table_vqq_zkr_nlb}  
This example assumes you have created a flow containing a Log
action. This inline script generates the content of the Log message.

    var contextId = FlowScriptAPI.getContextID();
    return contextId;

Output:

    4ecead85c4da0010598d0c7c6bf73554


