You need to sign in to do that
Don't have an account?
Steve McKitrick
Prevent Deceased contacts from being pulled into reports (Prevent accidental contact)
In our organization, we have older contacts who pass away. We want to retain their historical records, but want to avoid accidentally contacting contacts who've passed away. I've read that a workflow rule can be created to append or prepend their name field but I lack the ability to write the code required to make this happen.
I have inserted a custom field with a checkbox that indicates that the contact is inactive, but what would the next steps in the workflow rule look like? Thanks in advance for your assistance.
I have inserted a custom field with a checkbox that indicates that the contact is inactive, but what would the next steps in the workflow rule look like? Thanks in advance for your assistance.
First off what is the criteria to know if a contact is Deceased or not ?
Step 1: Use that criteria in your workflow to do a field update, to update the checkbox field you created to "True"
Step 2: Using data loader export all the contacts from your ORG and fields to include is ContactID.
Step 3: Now do a import back with the excel(.csv) file on the contacts maping the ID fields.
By doing the update we are triggering the workflow to fire to update the old records to check the checkbox.
Hi Steve,
I recently wrote a similar workflow rule to enforce naming conventions. This rule checks to see if the Name meets the naming convention outlined in the rest of the rule. If it does not, it changes it to meet the convention. In your case, you will want to create a custom checkbox to indicate if the contact is deceased and base the rule on that field. You will need to edit this rule to include the fields used in your org. Note that the & symbol is used to add additional text to the name, ie to append " DECEASED" to the contact's name.
The field update portion of the rule will contain the same formula, but without the NOT check.
NOT (Name = (CONTACT NAME FIELD &
IF( DECEASED FIELD = TRUE," DECEASED "
)))
(Name = ( FirstName &
IF( Deceased__c = TRUE," DECEASED "
)))
I keep getting this error: Error: Field Name does not exist. Check spelling.
So I played around with this a little bit, and it appears the Name standard field is not available within workflow rules. You will have to add DECEASED to either the first name or last name, and have it set to update when that field change. So your trigger will be (assuming you want to add it behind the last name:
NOT (LastName = (LastName &
IF( Deceased__c = TRUE, " DECEASED"
)))
The field update will be on LastName, and be:
LastName &
IF( Deceased__c = TRUE, " DECEASED"
)
Hopefully this one works for you!
Thank you again!!
Why dont use the checkbox itself to filter the records? or you can reassign ownership of all these accounts to user in higher heirarchy so that they wont show up anywhere in the system for users. That way even list views, reports, search etc will also be cleaner.