You need to sign in to do that
Don't have an account?

How do I prevent the deletion of an attachment on the account
We have a requiremetn that on some accounts they attach a document that starts with the words "Opt-In". Once they attach that document we need to repvent them from ever deleting it. WOuld anyone be willing to help a loan Admin with no developer support with the actual trigger and test class code to make this work? I know enough to read the code and tweek for my use if necessary. I jsut do not have the skill set to actually write the code.
Understand if can't be done but worth a shot to ask
Understand if can't be done but worth a shot to ask
This trigger check if the first 6 letters are "Opt-In". If an user change the name to anything else would be able to bypass it.
- Create a validation rule to prevent that.
- In the test class add any required field to the account.
-if you change the error you want to display in the trigger change it in the test class too.
Let me know if it works for you or if you have any question.
All Answers
This trigger check if the first 6 letters are "Opt-In". If an user change the name to anything else would be able to bypass it.
- Create a validation rule to prevent that.
- In the test class add any required field to the account.
-if you change the error you want to display in the trigger change it in the test class too.
Let me know if it works for you or if you have any question.
trully recomend you to use trailhead and this blog have been great help to www.sfdc99.com. In no time you will be writting trigger. Trust me, I'm a solo-admin.
wil,