• Sangeeta Bhatia
  • NEWBIE
  • 15 Points
  • Member since 2014

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 5
    Questions
  • 3
    Replies
Hi all I am very new to Apex code.I am able to do basic stuff but really struggling w this. Any help or code sample is appreciated.
Scenario- I have a custom object say DMContact, in that I have a contact look up field.
When any contact is selected in a DMContact record I want to flag that contact as being used in the DMContact.
So basically I want to retrieve the ID of the contact records selected in the look up field on the DNContact record, then go that contact record and update a checkbox field on Contact object called 'DMContact'.
I am new to Apex. I need to write a code where when a new lead is created, if the lead source = Chat, i want to add a campaing called "chat" to this lead record. Can someone please help me with this code. thanks.