---
isPublished: true
knowledgeIndex: false
hidden: true
noindex: true
template: "page.peb"
title: "QR Code Action Flow Reference"
description: "Generate a QR-code image and return its URL."
contentType: "reference"
audience: "admin,developer"
---

# QR Code Action

Generate a QR-code image and return its URL.
The namespaced Apex action name is `rooms__QRCodeAction`.

## Transaction summary

| Effect | Behavior |
| --- | --- |
| API callout | Yes. The action waits for the QR-code response. |
| Record writes | No Salesforce record insert, update or delete in the action step. The request creates a QR image result. |
| Platform event | The action does not directly publish a platform event. |
| Background work | No separate job output is returned. |
| Email | No email is sent. |

## Inputs

Required describes the Flow input setting. Additional configuration rules can still require a value.

| API name | Flow label | Required | Default or guidance |
| --- | --- | --- | --- |
| `data` | Data to be encoded in QR code | No | Defaults to `Default QR Code`. Replace it with the intended value or URL. |
| `height` | QR Code Image Height (default=100) | No | Defaults to `100`. Supply the requested image height as text. |
| `width` | QR Code Image Width (default=100) | No | Defaults to `100`. Supply the requested image width as text. |

## Outputs

| API name | Flow label | Meaning |
| --- | --- | --- |
| `success` | Success | Whether the immediate request succeeded. |
| `message` | Error Message | Error details. |
| `contentURL` | QR Code Image URL | The returned QR image URL. Confirm that the image is usable before sharing it. |

## Configure the Flow

1. Set the exact text or URL to encode.
2. Set the image dimensions.
3. Store Success, Error Message and QR Code Image URL.
4. After Success is `true`, open or display the image and verify the encoded value.

Confirm the Flow user's Apex action access and access to the records or Files used by this operation. Review the configured Salesforce API connection user's access when the action makes an API request.

## Troubleshooting

**You have uncommitted work pending.** This action makes an API callout. Review preceding work and transaction settings.

**The wrong value is encoded.** Replace the default Data value.

**A URL is returned but the image is unavailable.** Check the image before distributing it. A returned URL alone does not confirm usable image bytes.

See the [Flow action catalog](/content/build/flows/index.md) for related actions and transaction guidance. Confirm that the action and input fields are available in the installed package.
