Pull data function from barcode scan

Have you gone through our post discussed previously? It should solve your issue: