Advertisement
Guest User

Untitled

a guest
Sep 26th, 2017
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. if(String.IsEmpty(acc.NavisionId__c))
  2. {
  3. //irrelevant logic
  4. }
  5. else
  6. {
  7. throw new MyCustomInvalidOperationException('You cannot delete Account which has already become a customer and is linked to Navision. You can however change its Status to Former Customer instead');
  8. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement