• Hiral Patel 25
  • NEWBIE
  • 10 Points
  • Member since 2020
  • Sr. Developer
  • xyz

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 24
    Questions
  • 6
    Replies
write down visual force page

                                    CALCULATOR

First Number ::  box
Second Number : :   box
Result:: box

Add     SUB    MUL  DIV

Everything in box
in scheduled apex write a program any custom object every 1st saturday of the month
in Batch apex write program to update the name field in the contact object with the level as primary 
(Note : upload 500 records through dataloader)
 why i am showing this error :Variable does not exist: Phone

trigger Phone_Email_Validation on Contact (before insert) 
{
  if (Trigger.Isbefore && Trigger.IsInsert)
  {
      for (Contact con : Trigger.New)
      {
          if (con.Phone == Null || con.Phone == '')
          {
              con.Phone.AddError ('Please Enter a valid Phone Number');
          }
          Else
              if(con.Email == Null || con.Email == '')
          {
              con.Email.AddError ('Please Enter a valid Email Address');
          }
      }
  }
}
i got this error :Variable does not exist: description

trigger ContactEx2_0209 on Contact (before update) 
{
  for(contact con : Trigger.New)
  {
      con.description = 'Updated by --->' +userinfo.getUserName();
  }
}
create  new account with type=customer direct and industry=banking and new opportunities record will be created using trigger