Create execution

Stay organized with collections Save and categorize content based on your preferences.

Creates a workflow execution.

Code sample


Before trying this sample, follow the Node.js setup instructions in the Workflows quickstart using client libraries. For more information, see the Workflows Node.js API reference documentation.

 * TODO(developer): Uncomment these variables before running the sample.
// const projectId = 'my-project';
// const location = 'us-central1';
// const name = 'my-test-workflow';
const {ExecutionsClient} = require('@google-cloud/workflows');
const client = new ExecutionsClient();
async function createExecution() {
  const [resp] = await client.createExecution({
    parent: client.workflowPath(projectId, location, name),
  });`name: ${}`);

What's next

To search and filter code samples for other Google Cloud products, see the Google Cloud sample browser.