function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Nick KeehanNick Keehan 

Generate Random/Unique Password on Account Record when Saved

Hi Guys.

Looking for help with creating a unique randomly generated password in a field when a record is saved.

Have done some research and cant get any of the solutions working with my limited knowledge.
E.g. http://salesforce.stackexchange.com/questions/43823/how-do-i-generate-a-random-string

Is there a piece of apex code that can acomplish this for me, or has anyone got a suggestion on what page to follow?
Any help would be apreciated.

Nick

 
Best Answer chosen by Nick Keehan
Nick KeehanNick Keehan
This is the correct answer after some research - https://medium.com/@danielbprobert/salesforce-random-string-number-generating-f1c635c9fbc6#.78q293g28