Service Account Name Rule with INCREMENTINDEX

aro
New Contributor III
New Contributor III

We create Service Accounts for AD and the account name should look like this

      ad-srv-00047       (with 5 digits at the end)

Is there any way to add leading '00000' to the INCREMENTINDEX and limit the name to the last 5 digits? For example: '00000' + '47' = '00047'.

The Service Account Name Rule now looks like this:

ad-${if(accountType.equals('Service Account')) {'srv'} else if(accountType.equals('Shared Account')) {'shr'} else {''}}###INCREMENTINDEX###

1 REPLY 1

rushikeshvartak
All-Star
All-Star

You need to have dynamic attribute calculate incremental index