Quantcast
Channel: Microsoft Dynamics 365 Community
Viewing all articles
Browse latest Browse all 17314

Random String for Dynamics Password

$
0
0
Get random string password by using “ RandomGenerate ” class static void Raj_Password_Random() { int i; RandomGenerate random = new RandomGenerate(); str password; int passwordLength = 8 ; for (i=1; i<= max(2, passwordLength); i++) { if (i mod 2) password += num2char(random.randomInt(char2num('a', 1), char2num('z', 1))); else password += num2char(random.randomInt(char2num('0', 1), char2num('9', 1))); } info(password); } Rajdip Das Kolkata...(read more)

Viewing all articles
Browse latest Browse all 17314

Trending Articles