# Scan barcode/QR code

The Action Node **Scan Barcode/QR code** may be used to scan Barcodes or QR code&#x73;**.** The Action Node may only be run from devices that have a camera.

{% hint style="info" %}
An example setup of Scan Barcode/QR code is showcased in our [Showroom!](https://showroom-dev.appfarm.app/action-nodes/scan-barcode-qrcode) You may view a demo and access the setup in Appfarm Create. If you do not have access, you may register [here](https://showroom.appfarm.app/sign-up).
{% endhint %}

{% hint style="info" %}
**Generate and display QR codes**

Appfarm Create supports generating and displaying QR codes. Read more [here](/library/ui-components/image.md#generate-and-display-qr-codes).
{% endhint %}

## Settings

If the user declines the request to open the camera, **Scan Barcode/QR Code** will throw *GetUserMediaNotAllowedError* (Appfarm Error Code: 17004). One may use the Catch Exception Action Node to provide feedback to the user in this case.

### Target Property

Select the data source where the value from the Barcode/QR code will be stored. The value will be stored as a **String**.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.appfarm.io/library/action-nodes/scan-barcode-qr-code.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
