Generate QR code
The Generate QR code robot creates a QR code from any text in Bitrix24 business processes and robots and attaches the PNG image to a file field of the current entity. The inputs are the content (a URL, text, vCard, Wi-Fi, an SBP link or a ready payment string) and the file field code. It returns a success flag, the file URL and the file name.
The robot encodes any string into a QR code and saves the ready PNG image straight into a file field of the deal, contact, company or lead whose process it runs in. The inputs are the QR content (a website or payment link, text, a vCard/MeCard contact, a Wi-Fi join string, an SBP link from the bank or a GOST payment string) and the file field code such as UF_CRM_QR; optionally the module size in pixels. Rendering is fully offline (no external service calls), so the robot is safe and works on any plan. It returns a success flag (Y/N), a direct link to the stored file and its name. Typical use cases: add a QR with a payment or survey link to the card, generate a QR business card for a contact, attach a QR for a quick jump to a landing page. For a payment QR built from bank requisites use the "Payment QR (GOST)" robot.
What input parameters does the robot accept?
| Parameter | Type | Required? | Default |
|---|---|---|---|
| QR content (URL, text, vCard, etc.) | text | yes | |
| File field code (e.g. UF_CRM_QR) | string | yes | |
| Module size in pixels (default 6) | int | — | 6 |
What does the robot return?
| Parameter | Type |
|---|---|
| Success (Y/N) | string |
| QR file URL | string |
| File name | string |
Scenario: a payment-link QR on a deal
- A deal moves to the Invoiced stage
- The Generate QR code robot encodes the payment link and saves the PNG to the UF_CRM_QR field
- The next step inserts the file link into an email to the client