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.

1 REPLY 1

mza-guille
Mega 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á!