You need to sign in to do that
Don't have an account?
MellowYellow
Trying to populate the RecordType field when creating an Opportunity with Apex trigger
I am creating a new Opportunity record with an Apex trigger. I'm able to set the field values on the new Opportunity, except for the RecordType, which is a picklist containing 2 values. I have the id value for the picklist value, I'm just not able to set it.
Thanks
Have you tried this:
Replace 'renewal ' with your recordtype name.
Hope it helps.