You need to sign in to do that
Don't have an account?
how to show errror message
Hii All,
If the account record has any related contact records where Record Type = Worker Shift and Status = Pending or Scheduled, then the system displays an error saying "You cannot deactivate a account that has pending or scheduled shift." System displays the view screen for the related contact.
If the account record has any related contact records where Record Type = Worker Shift and Status = Pending or Scheduled, then the system displays an error saying "You cannot deactivate a account that has pending or scheduled shift." System displays the view screen for the related contact.
A Trigger on Account would serve your perpose.(Error message can be displayed through Trigger based the Criteria mentioned)
Best Regards,
Onesh.K