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 :
S RajahS Rajah

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)?
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 (" app allows to scan and send data to Salesforce and execute configurable actions in Salesforce -

App demo -
Yogendra JangidYogendra Jangid
Hi, you can look for the below reference for barcode scanning natively using LWC.