Number Maintenance

Kri
Tera Guru

I have Number Maintenance created for Case table with Prefix 'CS', when I create a Major Case I want the prefix as MIM, how to achieve this?

Krishna124_1-1685446190678.png

 

4 REPLIES 4

Ahmmed Ali
Mega Sage

You can write a before insert BR on the case table and if it is major case, replace CS with MIM in number field.

If I could help you with your Query then, please hit the Thumb Icon and mark my answer as Correct!!

Thank you,
Ali

Can you help me with the script?

I am not much aware of condition for the BR to identify major case, I assume you can update that.

As far as script goes, you can write below script:

 

var number = current.getValue("number");

if(number){

current.number = number.replace("CS", "MIM");

}

 

Note: it should be before insert BR.

 

Thanks,

Ali

 

If I could help you with your Query then, please hit the Thumb Icon and mark my answer as Correct!!

Thank you,
Ali