function readOnly(count){ }
Don't have an account?
Search for an answer or ask a question of the zone or Customer Support.
You need to sign in to do that
Sign in to start searching questions
Signup for a Developer Edition
Sign in to start a discussion
for(opportunity opp : trigger.new) { string recordtypename = Schema.SObjectType.Opportunity.getRecordTypeInfosById().get(opp.recordtypeid).getname(); }
Opportunity__r.RecordType.Name
You can use the following code to get recordtype name in opportunity trigger.
David
All Answers
Thanks,
Karanraj
http://www.karanrajs.com
You can use the following code to get recordtype name in opportunity trigger.
David