- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-10-2018 10:21 AM
Hello all,
Is it possible to auto-number the alm_asset table using a business rule? I have very little experience dealing with business rules. Below is the code i tried at first with just populating the asset tag field with a value of 3, just to see if i could make some progress, no luck. Any tips or suggestions are welcomed.
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-10-2018 11:01 AM
A before Business Rule would only execute when you try to save the record so you don't actually get to see the value of 3 in the form. Rather, if you saved the record, you should find that the Asset Tag value is 3 when you pull up the saved record.
You might want to use the auto-numbering feature (the same feature that sets automatic incident numbers when you create incidents). See documentation at: Add auto-numbering records in a table
You can set the default value of javascript:getNextObjNumberPadded(); on the Asset Tag field and possibly avoid Business Rules all together.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-10-2018 10:31 AM
*Auto number the asset tag field within the alm_asset table.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-10-2018 11:01 AM
A before Business Rule would only execute when you try to save the record so you don't actually get to see the value of 3 in the form. Rather, if you saved the record, you should find that the Asset Tag value is 3 when you pull up the saved record.
You might want to use the auto-numbering feature (the same feature that sets automatic incident numbers when you create incidents). See documentation at: Add auto-numbering records in a table
You can set the default value of javascript:getNextObjNumberPadded(); on the Asset Tag field and possibly avoid Business Rules all together.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-10-2018 01:10 PM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-10-2018 01:13 PM
I haven't tested this so you will have to test first ....
See if you can delete the 'Number' field because it seems unnecessary at this point. If doing so breaks the auto numbering functionality that you want for the Asset Tag, then I'd leave the field there but just remove it from the Form Layout.