> ## Documentation Index
> Fetch the complete documentation index at: https://docs.aseeflow.org/llms.txt
> Use this file to discover all available pages before exploring further.

# Generating a Business Key

The following example shows how you can generate a business key using Javascript:

```html theme={null}
<form role="form">
  <script cam-script type="text/form-script">

    camForm.on('submit', function() {
      camForm.businessKey = 'some-generated-value';
    });

  </script>

</form>
```

As you can see, you can set the `businessKey` variable on the `camForm` object. The value you set
will be submitted in the start process instance request.

Note that the business key can only be set when a process instance is started, not when completing a
task.
