Code Monkey home page Code Monkey logo

sfdc-revert-user-emails-sandbox-post-copy's Introduction

Revert User Emails on Sandbox Post Copy

Salesforce adds @example.com to users emails after sandbox refresh (why?). This post script reverts the email addresses.

Deploy to Salesforce

Inspiration

This project was inspired by Beth Breisnes who asked on Twitter if someone had a Sandbox Post Copy script that would fix users' emails in a sandbox.

Viability

I put together a simple proof-of-concept and test class that shows how to mass update all the users' email addresses. However, I have not tested this in a real sandbox. One concern is whether Salesforce will send an "email change verification" to all the users before the change takes effect as is protocol when changing user's emails via Setup. If yes then you likely spammed all your users -- that may or may not be what you were going for.

Email Change Verification

Daniel Peter shared a thread on Salesforce StackExchange about how some folks try to by-pass their users having to click the verification link themselves, which may or may not be applicable for Sandbox Post Copy (I'm just not sure!).

Disable Email Change Verification

If email change verification is a problem (I'm not sure yet, I've not tested this in a real sandbox) and you still want to use this technique then you could contact Salesforce Support and request that the verification step be disabled.

sfdc-revert-user-emails-sandbox-post-copy's People

Contributors

douglascayers avatar gokubi avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.