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
Hi
I create new Opporunity (by code) and want to set it's Record Type.
How do I do it?
Yitzchak
You can make the record type as below.
Opportunity opp = new Opportunity(recordtypeid = 'write your id here', name='name');
and mention the required fields then
insert opp;
You can make the record type as below.
Opportunity opp = new Opportunity(recordtypeid = 'write your id here', name='name');
and mention the required fields then
insert opp;
All Answers
You can make the record type as below.
Opportunity opp = new Opportunity(recordtypeid = 'write your id here', name='name');
and mention the required fields then
insert opp;