Using QR Code Scan to populate a field value in a form

viniciusoliveir
Kilo Expert

Hello folks!

I´ve been struggling trying to reproduce the "Scan Conference Room QR Code" screens / features from the demo account available on the NOW Mobile app, and there not seems to exist an obivous / intuitive way for doing it by ourselves (screenshot below).

 

find_real_file.png

 

I have a case where i need to open a ticket (not incident, its a custom task table) against an asset, the ticket form will have a field that references the asset record. When raising the ticket, that field must be fiiled out using the QR Code scan. 

I was able to use the QR Code scanner to search a record in a list applet for testing purposes, but i can´t see to find a way to achieve my use case (use the qr code scanner to fill a form field for a new record).

 

Did anyone had a similar scenario or suggestions on how this can be done?

Thanks in advance.

3 REPLIES 3

annc_
Tera Expert

I have a similar scenario. What I did is to add a footer function on the applet. The function is an action, which creates a new record. The action has Record context and has a UI parameter whose input source is auto fill from the asset table. 

Hi annc,

Can you write details steps of what you have done?

Thanks,

Lior grinberg

David Ha
ServiceNow Employee
ServiceNow Employee

Hi Lior, 


This lab from K19 may help:
https://developer.servicenow.com/app.do#!/event/knowledge19/CCW1564/knowledge19_CCW1564_lab_3_qr_cod...

 

Walks through how to apply parameters on your applet to use QR barcode scanner.

 

Best,

David