function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Steve Connelly 5Steve Connelly 5 

how do i create a loop in a trigger that increment quarters and years

I have the starting quarter for an opp. and the number or quarters the opp spans.

I have a trigger that creates new related records for the Opp. Using the above information, how do i loop the trigger to name these new related records with subsequest quarter names?

Thank smuch,
Steve
Best Answer chosen by Steve Connelly 5
AbhishekAbhishek (Salesforce Developers) 
Hi Steve,

The below blog might similar to your requirement,

https://developer.salesforce.com/forums/?id=906F00000009F6RIAU

Check it once.