Advertisement
Guest User

Untitled

a guest
Aug 30th, 2016
47
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. Contact con = [Select Title from Contact where id='003g000000YxzQj'];
  2. system.debug(con.Title);
  3. con.Title += '1';
  4. update con;
  5.  
  6. //need to commit this change now
  7.  
  8. Long startingTime = System.now().getTime();
  9. Integer delayInMilliseconds = 1500; // One-second delay
  10. while (System.now().getTime() - startingTime < delayInMilliseconds) {
  11. // Do nothing until desired delay has passed
  12. }
  13. system.debug(con.title);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement