How to generate Unique Codes for Customer Registration form in CSM portal?

Balaji Kanduku2
Tera Contributor

Hai Team,

I have a Task On customer service Portal, The task is we have Customer Registration in CSM portal, One Specific field is there "Registration Code'', How to Generate an Unique code for Users?

Only if registration code enters, then only i'm able to submit otherwise, i cant., Help me on generate an unique code for users.

Please Help me to Solve this issue

Thanks,

Balajifind_real_file.png

1 ACCEPTED SOLUTION

Soeren Maucher
Mega Sage

Hello Balaji, 

you can set the Registration Code on the Account form as highlighted in the screenshot. You can then use this code during the registration process of new "customer users" and they will be automatically linked to this account. 

Out of the box the Registration Code is empty when you create a new account. If you want the field to be auto populated you could write an on insert business rule that is creating a random value. 
find_real_file.png
Greetings, 
Sören

View solution in original post

2 REPLIES 2

Soeren Maucher
Mega Sage

Hello Balaji, 

you can set the Registration Code on the Account form as highlighted in the screenshot. You can then use this code during the registration process of new "customer users" and they will be automatically linked to this account. 

Out of the box the Registration Code is empty when you create a new account. If you want the field to be auto populated you could write an on insert business rule that is creating a random value. 
find_real_file.png
Greetings, 
Sören

Hai,

Thank you soo much for reply, Can u please send sample code for insert business rule that is creating a random value.

thankyou.