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

Change a trigger in a managed package
Hello everyone!
I'm going to do my first managed package...But I have a situation!
One of my triggers has a RecordTypeId hard-coded (yes, I know I didn't have to do it, but I did....)
My question is, can I change the trigger once It is installed in the new Org, or It's going to fail forever and ever?!?!?
Thanks in advance!
No, you cannot change the code.
The better way is to look up the record type Id with its own query. I have a place where I need to retrieve four different record type id's. The code is below.
You also should have code to handle when the record type is not found.