Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Contact con = [Select Title from Contact where id='003g000000YxzQj'];
- system.debug(con.Title);
- con.Title += '1';
- update con;
- //need to commit this change now
- Long startingTime = System.now().getTime();
- Integer delayInMilliseconds = 1500; // One-second delay
- while (System.now().getTime() - startingTime < delayInMilliseconds) {
- // Do nothing until desired delay has passed
- }
- system.debug(con.title);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement