• Florencio Castillo 15
  • NEWBIE
  • 0 Points
  • Member since 2023

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 1
    Questions
  • 2
    Replies
Hello. I am getting this error: Compile Error: Expecting '}' but was: '<EOF>' at line 8 column 1

Here's the apex class:

trigger CompleteResolutionTimeMilestone on Case (after update) 
{    if (UserInfo.getUserType() == 'Standard')
{        DateTime completionDate = System.now();            
 List<Id> updateCases = new List<Id>();            
 for (Case c : Trigger.new)
 {  if (((c.isClosed == true)||(c.Status == 'Closed'))&&((c.SlaStartDate      <= completionDate)&&(c.SlaExitDate == null)))        updateCases.add(c.Id);        }
 
    if (updateCases.isEmpty() == false)        milestoneUtils.completeMilestone(updateCases, 'Resolution Time', completionDate); // Pass your milestone parameters to the Apex Handler Class    }}
Hello. I am getting this error: Compile Error: Expecting '}' but was: '<EOF>' at line 8 column 1

Here's the apex class:

trigger CompleteResolutionTimeMilestone on Case (after update) 
{    if (UserInfo.getUserType() == 'Standard')
{        DateTime completionDate = System.now();            
 List<Id> updateCases = new List<Id>();            
 for (Case c : Trigger.new)
 {  if (((c.isClosed == true)||(c.Status == 'Closed'))&&((c.SlaStartDate      <= completionDate)&&(c.SlaExitDate == null)))        updateCases.add(c.Id);        }
 
    if (updateCases.isEmpty() == false)        milestoneUtils.completeMilestone(updateCases, 'Resolution Time', completionDate); // Pass your milestone parameters to the Apex Handler Class    }}