• indra reddy 19
  • NEWBIE
  • 0 Points
  • Member since 2018

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 4
    Questions
  • 1
    Replies
whever a contact is created or updated then it should update the related account name with the exit account name appended with contact last name and contact mailing address should be update to the account shipping address and then the update account's related opportunities name should update with the account name appended with the value "Opp" and the stage should update to prospecting and close date should be one month from today's date.
How to write the batch apex progarm.

( Write a batch class to delete all the accounts where billing country equal to united states of America or US or USA handle the field records also in the same batch and return the batch class to delete failed records also. Once these US records are deleted )
whever a contact is created or updated then it should update the related account name with the exit account name appended with contact last name and contact mailing address should be update to the account shipping address and then the update account's related opportunities name should update with the account name appended with the value "Opp" and the stage should update to prospecting and close date should be one month from today's date.