function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Himanshu Jasuja 9Himanshu Jasuja 9 

How to scan the barcode in salesforce

I have a reuirement like i need to scan the barcode with i-pad and the related barcode comes in the input field in apex and then i will do further modifications based on this.ANY IDEAS?
Ravi Dutt SharmaRavi Dutt Sharma
Hey Himanshu,

There is a very good blog written on this by Jitendra. You can refer that to get an idea about barcode scanner using JS :
http://www.jitendrazaa.com/blog/salesforce/barcode-decoder-in-salesforce1-very-fast-and-simple/
S RajahS Rajah
Hello, 

Jitendra's post only works with a saved image as input, right? Is there a way to scan the barcode from a live camera and feed that input to SF1 so SF1 can query SFDC to retrieve additional attributes (tied to that barcode record)?
 
AlbertDevAlbertDev
I tried implementing a browser based scanning solution. But performance suffers.

Ended up using "Barcode to Cloud" app to scan and send barcode data to Salesforce.

"Barcode to Cloud (https://play.google.com/store/apps/details?id=com.albertdev.barcodetocloud)" app allows to scan and send data to Salesforce and execute configurable actions in Salesforce - https://play.google.com/store/apps/details?id=com.albertdev.barcodetocloud

App demo - https://www.youtube.com/watch?v=b3ArzkmR6kc
Yogendra JangidYogendra Jangid
Hi, you can look for the below reference for barcode scanning natively using LWC.
https://inevitableyogendra.blogspot.com/2022/06/scan-barcodes-natively-on-mobile-device-using-lwc.html