• Pavan Kumar 1700
  • NEWBIE
  • 55 Points
  • Member since 2020

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 8
    Questions
  • 4
    Replies

I have an approval process where i have one Intial action which updates the date field with formula as Today() as today's date. If some of the team members are making the changes in date updating the date frequently how can I restrict this.( I want to make this date field here as static).
I have an approval process where i have one Intial action which updates the date field with formula as Today() as today's date. If some of the team members are making the changes in date updating the date frequently how can I restrict this.( I want to make this date field here as static).
Hello i trying to get the 2nd lasrgest njumber by using arrays how can we find without sorting or lists? 
have written code please let me know i facing the errors like unexpected tokens.
public class SecondLargest
{
  public SecondLargestNum() 
  {
      Integer arr[] =new Integer[]{7, 21, 45, 6,34,56,78,26,65,87};
    Integer first = Integer.MIN_VALUE;
    Integer second = Integer.MIN_VALUE;
    for(int i = 0; i < arr.length; i++)
    {
      if(arr[i] > first)
      {
        second = first;
        first = arr[i];
      }
        else if(arr[i] > second)
      {
        second = arr[i];
      }                              
    }
    System.debug('Largest Number = ' + first + 'Second Largest Number ='  + second);
  }
}

 
can any one help to learn salesforce communities ?
public class GetSetDemo 
{
Private Integer AccountBalance;
     public integer getAccountBalance()
   {
       Return AccountBalance;
   }
   
       public Void setAccountBalance(Integer AccountBalance)
       {
       
           this.AccountBalance=new AccountBlance;
       }   
}


If i am going to save this compiler shows the error like Unexpected token ";"
Why this error how can we acheive this.?
can any one explain what is programming elements and how data abstraction can be imlemented in salesforce explain with the example?
Any user scenarios for data abstraction?
Hello Team  can anyone suggest me how to concatenate Particular word Like Mr or Dr in front of a field for suppose i need Dr infront of Doctor name.User-added image
Hello i trying to get the 2nd lasrgest njumber by using arrays how can we find without sorting or lists? 
have written code please let me know i facing the errors like unexpected tokens.
public class SecondLargest
{
  public SecondLargestNum() 
  {
      Integer arr[] =new Integer[]{7, 21, 45, 6,34,56,78,26,65,87};
    Integer first = Integer.MIN_VALUE;
    Integer second = Integer.MIN_VALUE;
    for(int i = 0; i < arr.length; i++)
    {
      if(arr[i] > first)
      {
        second = first;
        first = arr[i];
      }
        else if(arr[i] > second)
      {
        second = arr[i];
      }                              
    }
    System.debug('Largest Number = ' + first + 'Second Largest Number ='  + second);
  }
}

 
public class GetSetDemo 
{
Private Integer AccountBalance;
     public integer getAccountBalance()
   {
       Return AccountBalance;
   }
   
       public Void setAccountBalance(Integer AccountBalance)
       {
       
           this.AccountBalance=new AccountBlance;
       }   
}


If i am going to save this compiler shows the error like Unexpected token ";"
Why this error how can we acheive this.?
Hello Team  can anyone suggest me how to concatenate Particular word Like Mr or Dr in front of a field for suppose i need Dr infront of Doctor name.User-added image