You need to sign in to do that
Don't have an account?
Vidya H 4
Please help me to write batch classs
I have Created a field called Funding on Quote with values - Partial , Full and NA .
and i Created a field called Funding on Opportunity.
Write a batch class to rollup the unique funding field values from Quote to Opportunity if Opportunity stage is closed/won. Ex: if an opportunity has 6 quotes with funding Full, Full, NA, Partial ,NA, Partial then field on opportunity should be in format - Partial,Full,NA.
and i Created a field called Funding on Opportunity.
Write a batch class to rollup the unique funding field values from Quote to Opportunity if Opportunity stage is closed/won. Ex: if an opportunity has 6 quotes with funding Full, Full, NA, Partial ,NA, Partial then field on opportunity should be in format - Partial,Full,NA.
Can you try the below Apex Batch class.
If this solution helps, Please mark it as best answer.
Thanks,
we need to populate Opportunity's funding field in this format -->for example if that opportunity has 4 quotes like Full,partial,NA,full then
funding field on opportunity should be in format - Partial,Full,NA
and other condition is, the above scenario should execute only if Opportunity's stage is closed/won..
u have used for loop inside for loop in line number 21 and 23 could you please modify it?