DocSF

DocSF

Did You Know?

You can create any type of product documentation with Docy

Salesforce Apex: Come generare una stringa casuale

public static String generateRandomString(Integer len) {
    final String chars = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789abcdefghijklmnopqrstuvwxyz';
    String randStr = '';
    while (randStr.length() < len) {
       Integer idx = Math.mod(Math.abs(Crypto.getRandomInteger()), chars.length());
       randStr += chars.substring(idx, idx+1);
    }
    return randStr; 
}

Related Post

Salesforce Visualforce: Aprire pagina visualf

Durante la formazione in Salesforce ho avuto spesso a c...

Salesforce Lightning Component: Ciclare una l

<aura:component access="global" implements="force:ap...