Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if(String.IsEmpty(acc.NavisionId__c))
- {
- //irrelevant logic
- }
- else
- {
- 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');
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement