Generate signed Image-Charts QR Codes directly in Microsoft Power Apps Canvas Apps
npm install @image-charts/pcf-qrcodeThe solution file is located at:
node_modules/@image-charts/pcf-qrcode/solution/ImageChartsQRCode.zip
- Go to make.powerapps.com
- Select your environment
- Navigate to Solutions > Import
- Select the
.zipfile and follow the import wizard
- Open your Canvas App in edit mode
- Go to Insert (+) > Code components > Import component
- Select QRCodeGenerator
- Drag the component onto your screen
// Configure the component
QRCodeGenerator.accountId = "YOUR_ACCOUNT_ID"
QRCodeGenerator.secretKey = "YOUR_SECRET_KEY"
QRCodeGenerator.qrData = TextInput1.Text
QRCodeGenerator.chartSize = "300x300"
Full tutorial and documentation: https://documentation.image-charts.com/integrations/power-apps/
For Image-Charts Enterprise customers. URLs are signed with HMAC-SHA256.
QRCodeGenerator.accountId = "your_account_id"
QRCodeGenerator.secretKey = "your_secret_key"
For Image-Charts Private Cloud customers. No signature required.
QRCodeGenerator.privateCloudDomain = "charts.yourcompany.com"
Note: Private Cloud mode does not require
accountIdorsecretKey.
| Property | Type | Required | Default | Description |
|---|---|---|---|---|
accountId |
Text | No* | - | Image-Charts Enterprise Account ID |
secretKey |
Text | No* | - | Image-Charts Enterprise Secret Key |
privateCloudDomain |
Text | No* | - | Private Cloud domain (e.g., charts.mycompany.com) |
qrData |
Text | Yes | - | Data to encode in the QR Code |
chartSize |
Text | No | 300x300 |
Size in pixels (format: WIDTHxHEIGHT) |
qrForegroundColor |
Text | No | 000000 |
Foreground color (hex: RRGGBB or #RRGGBB) |
qrBackgroundColor |
Text | No | FFFFFF |
Background color (hex: RRGGBB or #RRGGBB) |
errorCorrectionLevel |
Text | No | M |
Error correction: L, M, Q, or H |
advancedOptions |
Text | No | - | Additional parameters (format: key=value&key2=value2) |
showDebugUrl |
Boolean | No | false |
Display generated URL below the QR Code |
errorPlaceholderUrl |
Text | No | - | Custom image URL for error state |
*Either accountId + secretKey OR privateCloudDomain is required.
| Property | Type | Description |
|---|---|---|
signedUrl |
Text | The complete Image-Charts URL (signed if Enterprise mode) |
QRCodeGenerator.accountId = "my_account"
QRCodeGenerator.secretKey = "my_secret"
QRCodeGenerator.qrData = "https://example.com"
QRCodeGenerator.qrData = TextInputURL.Text
QRCodeGenerator.qrForegroundColor = "0000FF" // Blue
QRCodeGenerator.qrBackgroundColor = "FFFF00" // Yellow
QRCodeGenerator.errorCorrectionLevel = "H" // 30% error correction
QRCodeGenerator.advancedOptions = "chld=H|4" // With 4px margin
QRCodeGenerator.showDebugUrl = true
// Access the URL in a Label
Label1.Text = QRCodeGenerator.signedUrl
- Verify your
accountIdandsecretKeyare correct - Check that your Enterprise subscription is active
- Enable
showDebugUrlto inspect the generated URL
- The component has a 300ms debounce delay to prevent excessive API calls
- Wait a moment after changing inputs for the QR Code to refresh
- Provide either
accountId+secretKey(Enterprise) ORprivateCloudDomain(Private Cloud) - Both modes cannot be used simultaneously
- The component retries failed requests up to 3 times with exponential backoff
- Total timeout is 15 seconds
- Check your network connectivity
For development environments, you can push directly:
# Authenticate with your Power Platform environment
pac auth create --url https://your-org.crm.dynamics.com
# Push the component
npx @image-charts/pcf-qrcode push --publisher-prefix icSee CHANGELOG.md for release history.
MIT - see LICENSE
- Documentation: https://documentation.image-charts.com
- Issues: https://github.com/image-charts/pcf-qrcode/issues
- Email: support@image-charts.com
Made with love by Image-Charts

