{"revision":"c10276e953456835cdbb1f3a60d58ae1980be353","document":{"id":4159,"path":"build-workflows/workflow-studio/flow-design-code-snippet.md","title":"Create code snippets for flows, subflows, and actions","bundle":null,"doc_type":null,"release":"australia","body":"\n# Create code snippets for flows, subflows, and actions\n\nGenerate a code snippet to call a specific flow, subflow or action.\n\n## Before you begin\n\n-   Activate the flow or subflow you want to call.\n-   Publish the action you want to call.\n\nRole required: flow\\_designer or admin\n\n## Procedure\n\n1.  Navigate to **All** &gt; **Process Automation** &gt; **Flow Designer**.\n\n2.  Open a flow, subflow, or action.\n\n3.  Click the **More Actions** icon in the upper right corner of the flow designer.\n\n4.  Select **Create Code Snippet**.\n\n    The code snippet appears in a new window and is selected by default.\n\n5.  Copy the code by manually copying it from the pop-up modal or clicking the **Copy Code Snippet Clipboard** button.\n\n\n## What to do next\n\nEdit the script to add any mandatory values, such as inputs.\n\n"}}