How i can generate asset tag and serial number automatically in alm_asset table?

Community Alums
Not applicable

Hi All,

I am creating records dynamically in alm_asset table via run script activity in workflow. Whenever a record is created i need to set unique value to both "Asset Tag" field and "Serial Number" field. Can anyone help how can we achieve this without number maintenance?

 

Regards,

Sirraj

1 ACCEPTED SOLUTION

Community Alums
Not applicable

Hi Abhishek,

Thank you for the reply and sorry for the late response.

I have achieved this without number maintenance. I have stored a counter value in property and whenever i am inserting a record i have called that property to set numbering for the asset field.

-Sirraj

View solution in original post

8 REPLIES 8

Community Alums
Not applicable

Hi Abhishek, 

I have made a entry to the table as you mentioned. But after creating a record in number maintenance, in asset table a new "Number" field gets added. 

Please see the below screenshot.

find_real_file.png

 

Regards,

Sirraj

 

have you just used option 1?

Thank you,
Abhishek Gardade

Community Alums
Not applicable

Hi Abhishek,

Thank you for the reply and sorry for the late response.

I have achieved this without number maintenance. I have stored a counter value in property and whenever i am inserting a record i have called that property to set numbering for the asset field.

-Sirraj

shabber
Tera Contributor

Asset tag used in cmdb_ci_batch_job  for purpose of using it and provide clear information link for better understanding