Asset management through barcode

rishi4200
Giga Expert

Hi Friends,

Good Day !

Has anyone implemented QR/Barcode scanning for hardware asset management in ServiceNow without using any application ?

Thank you,

Rishi

1 ACCEPTED SOLUTION

HI Rishi


Thats a very simple solution . Create a UI page having a text box and some buttons to perform the action. All the other part will be handled by the scanning device.



We had one scanning device that was populating the scanned BarCode to the focused Textbox.I had done the below setup



1. Setup a UI page


2. Configured two radio buttons there to select whether you want to search the scanned barcode via serial number or asset tag.


3.Then I have setup two buttons on the page. One to cancel and second to Open the scanned asset record. This button result in opening the related asset form.user update that form and close it.



I didn't like this much.There are some drawback in the above setup.


1. User has to login to the servicenow everytime whenever he do the scanning


2. At a single time you can process one record only. There is no batch process.


3. You can say this was just like a 'Jugaad'. A free solution.


View solution in original post

9 REPLIES 9

HI Rishi


Thats a very simple solution . Create a UI page having a text box and some buttons to perform the action. All the other part will be handled by the scanning device.



We had one scanning device that was populating the scanned BarCode to the focused Textbox.I had done the below setup



1. Setup a UI page


2. Configured two radio buttons there to select whether you want to search the scanned barcode via serial number or asset tag.


3.Then I have setup two buttons on the page. One to cancel and second to Open the scanned asset record. This button result in opening the related asset form.user update that form and close it.



I didn't like this much.There are some drawback in the above setup.


1. User has to login to the servicenow everytime whenever he do the scanning


2. At a single time you can process one record only. There is no batch process.


3. You can say this was just like a 'Jugaad'. A free solution.


Thank you harsh !


I will check both of the solution within my team and get back to you, if required.


Have a nice rest of the weekend !!



Regards,


Rishi


i m trying to create button in computer table i could not.

can you help here please.

Table: cmdb_ci_computer

ui name: generate_bar_code

name: Generate Barcode

 

script:

function barcode(){

var barcodeID = g_form.getUniqueValue();

var tableName = g_form.getTableName();
var recID = g_form.getValue('serial_number');
var recIDD = g_form.getValue('model_id');
var recIDs =g_form.getValue('asset_tag');

var numPrint = 1;

var instantPrint = true;

var dialog = new GlideDialogWindow('barcode_generator_home');
dialog.setTitle('');
dialog.setPreference("barcode_id", barcodeID);
dialog.setPreference("rec_table", tableName);
dialog.setPreference("rec_id", recID);
dialog.setPreference("rec_idd", recIDD);
dialog.setPreference("rec_ids", recIDs);
dialog.setPreference("num_print", numPrint);
dialog.setPreference("instant_print", instantPrint);
dialog.render();
}

Hi Harsh,

 

Could you provide me information for bulk upload of assets using barcode scanning through mobile app

rishi4200
Giga Expert

Hi Harsh,



I have an additional question related to your below line:


We had one scanning device that was populating the scanned BarCode to the focused Textbox.I had done the below setup



Can you please let me know where we need to createthe Textbox which will capture the asset tag or serial number ? Do we need to create on the UI page ?


Also once the serial number/asset tag will be populated, how the asset record will populate ?



Thank you.