
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-05-2019 01:01 AM
Hi,
Can anyone help me with the post cloning script for data scrambling in non production instances.
Thanks in advance!
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-05-2019 01:46 AM
Got this from stackoverflow. you can use normal GlideRecord and use this function to scramble text wherever needed
function shuffelWord(word){
var shuffledWord = '';
word = word.split('');
while (word.length > 0) {
shuffledWord += word.splice(word.length * Math.random() << 0, 1);
}
gs.print (shuffledWord);
}
shuffelWord("test test");
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-05-2019 01:08 AM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-05-2019 01:19 AM
Hi Govind,
Thanks for responding, I appreciate your efforts. But here i need help in scripting part.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-05-2019 01:46 AM
Got this from stackoverflow. you can use normal GlideRecord and use this function to scramble text wherever needed
function shuffelWord(word){
var shuffledWord = '';
word = word.split('');
while (word.length > 0) {
shuffledWord += word.splice(word.length * Math.random() << 0, 1);
}
gs.print (shuffledWord);
}
shuffelWord("test test");
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-05-2019 01:50 AM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-14-2020 06:36 PM
Hi Vignesh,
Could you please given an example of how you would do a GlideRecord to update a user's email address with this shuffleword function?
Many thanks,
Anna