Set Default Value AFTER record is created

Katie A
Mega Guru

Hello I am using the default value to assign an Asset Tag after a CI is created.

I am using the script javascript:getNextObjNumberPadded()

However, I need to set the asset tag ONLY if the computer is NOT virtual.

So basically, the record needs to be created first with the field value "Is Virtual" set to true or false.

Then, I need to be able to set the default value of the Asset Tag based on that condition.

How can I do this, would it be possible with a business rule that is run AFTER record insertion?

I tried creating a business rule for this but the Global business rules do not have Before/After conditions.

Thanks!

1 ACCEPTED SOLUTION

Anurag Tripathi
Mega Patron
Mega Patron

dont create a global br



Make the BR on the server table


before


insert/update


condition = isVirtual


-Anurag

View solution in original post

1 REPLY 1

Anurag Tripathi
Mega Patron
Mega Patron

dont create a global br



Make the BR on the server table


before


insert/update


condition = isVirtual


-Anurag