---
title: "Turning Microsoft Forms into Actionable Cards Part II"
url: "https://docs.ops.center/en/article/turning-microsoft-forms-into-actionable-cards-part-ii"
language: "en"
last_updated: "2025-04-14T07:51:25.119Z"
---

# Turning Microsoft Forms into Actionable Cards Part II

We covered the first two points in the previousepart:

-   **Title**: Choose the form question that should appear as the **work item title**. (In our example, we use *"What is the issue?"*)
-   **Single Select Question**: Operations Center supports single select dropdown fields, but connecting them to Microsoft Forms **is tricky**. To simplify this, we use a **Single Line Text** custom field instead.

now , let’s cover how we can transfer attachments on a microsoft forms to be attached to a card in Operations Center.

### **Handling Attachments in Power Automate**

Now that we've set up the core automation, let’s take care of **attachments** from the Microsoft Form. If a user uploads a file, we need to process it properly and ensure it gets attached to the right work item in Operations Center.

Start by adding a new action, then search for **Parse JSON** and select it. Inside **Content**, select the Microsoft Forms question where users upload attachments. In our case, the question is **"Attach a file"**, so we select that. We need to define a **schema** so Power Automate knows how to handle the data. Paste this into the **Schema** field:

![](https://cdn-assets.productfruits.com/015fd1b0-1e7a-4b30-9056-220143b82a48)

```plaintext
{
  "type": "array",
  "items": {
    "type": "object",
    "properties": {
      "name": { "type": "string" },
      "link": { "type": "string" },
      "id": { "type": "string" },
      "referenceId": { "type": "string" },
      "driveId": { "type": "string" },
      "status": { "type": "integer" }
    },
    "required": ["name", "link", "id", "referenceId", "driveId", "status"]
  }
}
```

This schema tells Power Automate how to extract the **file name**, **link**, and other necessary details from the form response.

### **Generate a Shareable Link**

Add another action and search for **"Create share link by path"** under **Microsoft 365 for Business**.

Now, let’s **set up the File Path correctly**:

Click the **folder icon** and follow this path:

1.  **Root**
2.  **Apps**
3.  **Microsoft Forms**
4.  **Select your form** (e.g., "Report a System Issue")
5.  **Select the attachment question**

After selecting the question, **remove the file name**, so you are left with this path:

```plaintext
/Apps/Microsoft Forms/Report a System Issue/Question/
```

![](https://cdn-assets.productfruits.com/098423d7-0f92-4d37-9544-a3e15f58deb9)

Now, **type another** `**/**` to bring up the dynamic content menu, then **select "Body/Name"**.

![](https://cdn-assets.productfruits.com/33d9824d-2c5b-4091-b1ee-86cc7734b387)

Set **Show Link Type** to **View** so Operations Center can access the file.

![](https://cdn-assets.productfruits.com/68057104-2ed1-4dd6-ac88-db7ce5977ef2)

### **Upload the File to Operations Center**

Next, **add another action**, set the **connector to Custom**, and select the **Operations Center connector**.

Search for **"Upload a file from the given URL"** and select it.

-   **Tenant ID** → Select your Tenant ID.
-   **Advanced Parameters → Body/URI** → Click the **lightning icon** and select **Web URL**.
-   **At the end of Web URL, manually add** `?download=1` to ensure the file is downloaded correctly.

![](https://cdn-assets.productfruits.com/d2f51a33-b6ff-47bc-b46f-01ac49e303fb)

### **Attach the File to the Work Item**

Now, add the **final action** to attach the uploaded file to the correct work item.

Search for **"Assign attachment to work item"**, then set the following fields:

-   **Tenant ID** → Select your Tenant ID.
-   **Work Item ID** → Click the **lightning icon** and select **Body/ID**.
-   **Body/ContentHash** → Select **Body/Hash**.
-   **Body/Extension** → Select **Body/Extension**.
-   **Body/Name** → Select **Body/ContainerName**.

![](https://cdn-assets.productfruits.com/bca9ba65-4933-47c2-9930-8643f4532322)

### **Final Step: Save and Test**

That’s it! **Save your flow**, then **submit a test response** in Microsoft Forms with an attachment. If everything is correct, the file should automatically upload and attach to the right work item in Operations Center.

Done! 🎉
