- In Dev Studio, open the case type that you created earlier.
- On the Workflow tab, click Add life cycle.
- Create a first stage with a Collect Information step. This step will open the dialog box where files can be added.

- Create a Process stage, add any step to this stage (e.g. Change stage), and click Save.

- Next, click Records → Process → Flow to open the list of flows and double-click the Process_Flow flow for the case type that you created earlier.

- Replace the Change stage step with a Utility step.

- Double-click the Utility item to open its properties. Change the name of the item to Capture Data. In the Rule field, type CaptureData to create a new activity with this name and click the icon next to this field.

- In the window that opens, click Create and open.
- On the Pages & Classes tab, create the following three objects:
| Page name | Class |
|---|---|
| Case | Work- |
| Attachment | Data-WorkAttach-File |
| AttachmentInfo | Data-WorkAttach-File |

- On the Parameters tab, create the following three parameters:
| Name | Data type |
|---|---|
| CaseId | String |
| jsonData | String |
| executionMode | String |

- Create the following three local variables:
| Name | Data type |
|---|---|
| LinkedRefTo | String |
| Id | String |
| Index | Integer |

