You need to sign in to do that
Don't have an account?
SFDC Noob 1
Set partner on Opportunities
I need to set the Partner Users on previous Opportunities registered by that partner user. Only designation i have to connect the two is the LeadSource field on Opportunities that lists "Partner-XXXX", xxxx is the company name. There are over 10000 records that don't have a partner listed. What would be the best of doing this?
eg.
list<oppotunity> olist = new list<oppotunity>();
for ( opportunity o : [select leadsource from opportunity where leadsource = null limit 9999]){
logic ---- o.leadsource = 'Partner - '+ <companname field>
olist.add(o);
}
update oList;
you can run this logic for few times if more than 9999 records because it will pickup new records everytime.
hope this helps.
thanks
shashi
And most likely be using it as a batch job.
Thanks