• RichaMidha
  • NEWBIE
  • 0 Points
  • Member since 2015

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 1
    Questions
  • 3
    Replies
I am new to Apex and I am getting the error as Maximum Trigger Depth Increased.
Here is my method:

public static void iterationCloser(list<Milestone1_Project__c> newProjectList)
        {
                      //List<Milestone1_Milestone__c > Iterations = [SELECT Id,Status__c FROM Milestone1_Milestone__c where Project__c= :CurrentProject.Id];
                      List<Milestone1_Milestone__c > Iterations = [SELECT Id,Status__c FROM Milestone1_Milestone__c where Project__c= :newProjectList];
            for (Milestone1_Project__c CurrentProject : newProjectList)
            {
                System.debug('Project Name:'+ newProjectList);

                if(CurrentProject.Status__c=='Completed')
                {
                    System.debug('Iterations:'+ Iterations);

                    for (Milestone1_Milestone__c CurrentIteration : Iterations) {
                                // This is current iteration close it 
                                if( currentIteration.Status__c != 'Completed')
                                {  
                                    currentIteration.Status__c = 'Completed';
                                }
                                
                                }
                     System.debug('Iterations:'+ Iterations);
                    
                }

            }
            update Iterations;
            
        }
Hi Team,

I'm facing the below issue,while clicking on the edit button beside the field in the object layout from yestarday onwards. Please let me clear my issue
Error:
An internal server error has occurred
An error has occurred while processing your request. The salesforce.com support team has been notified of the problem. If you believe you have additional information that may be of help in reproducing or correcting the error, please contact Salesforce Support. Please indicate the URL of the page you were requesting, any error id shown on this page as well as any other related information. We apologize for the inconvenience.

Thank you again for your patience and assistance. And thanks for using salesforce.com!

Error ID: 1339904850-587306 (1985196480)



Thanks
UmaMahesh
Our goal is to close cases within 48 hours.  Any idea how we can create a formula field that will incorporate weekends and holidays so reps are not penalized for closing cases that are opened on Friday evening or Holidays?

The field needs to be displayed in hours.  

Our business hours are listed below: 

SaturdayNo Hours
SundayNo Hours
Monday9:00 AM to 6:00 PM
Tuesday9:00 AM to 6:00 PM
Wednesday9:00 AM to 6:00 PM
Thursday9:00 AM to 6:00 PM
Friday9:00 AM to 6:00 PM

 
I am in the process of completing the Create a Guest Administrator and deactivate it challenge however within my developer org I have no option on profile other than 'Standar Platform User'. 

How do I assign a System Administrator Profile?

Thanks, 
Preena