We're reclaiming inactive PDIs to keep them available for active builders. Learn what's changing, who's affected, and how to protect your work. Read More

Now Mobile App - Barcode Scan to create work order

emengel
Tera Contributor

Hello,

 

I have a client who would like to utilize a record producer we already have built for them in the service portal in the now mobile app so that users can put in tickets from their phones. The kicker is that the client would like the users to be able to scan a barcode on the device to populate the "asset tag" field in the record producer. What is the best practice for being able to do this? I have the record producer visible from the home screen of the app and users can open it. I am just missing how to add barcode scanning capability to the now mobile app for users to utilize their phone camera to scan the barcode. Any help or guidance is greatly appreciated. Please forgive me if I put this in the wrong group.

2 REPLIES 2

mza-guille
Giga Contributor

Hola! justo estuve con algo parecido hace poco para un cliente. En el Mobile UI Builder (el nuevo) tenés un componente de Barcode Scanner que es bastante directo: lo agregás al formulario, lo vinculás al campo asset_tag, y cuando el usuario escanea te popula automáticamente.

Si estás usando el record producer directamente desde el home screen de Now Mobile, también funciona porque el campo se mapea solo al RP. La clave es que el campo en el RP sea visible y editable desde mobile (a veces los campos se ocultan en mobile aunque estén en el portal).

Otra alternativa rápida es usar una acción de Scan Barcode antes de abrir el RP, guardar el resultado en una variable y pasárselo al campo cuando se abre el formulario. Pero con el componente nativo del UI Builder es más limpio y menos choreo.

Fijate también que en la configuración del Mobile App Builder tenés que tener habilitados los permisos de cámara para la app, sino no te va a pedir el acceso. Cualquier cosa avisá!

Tanushree Maiti
Tera Patron

Hi @emengel 

 

refer:  Now Mobile QR Scan

https://www.youtube.com/watch?v=z_T9VuOCMHQ

https://www.servicenow.com/community/developer-forum/barcode-scanning-in-now-mobile/m-p/3311059

 

Please Accept the solution if it assisted you with your question & Mark this response as Helpful.
Regards
Tanushree Maiti
ServiceNow Technical Architect
LinkedIn: https://www.linkedin.com/in/tanushreemaiti
Learn how to leverage QR codes and barcode scanning from your native mobile device on the Now Mobile App. We are live every other Tuesday at 10:00 A.M. Pacific. Check out the Mobile App Academy Page to attend the next one and for more information ...