• sureshvepuri
  • NEWBIE
  • 0 Points
  • Member since 2011

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 2
    Questions
  • 2
    Replies

 

        Hi Community,

 

                                 i have a custom text field but can i enter date format

 

                                 only? How to write a validation rule please help me

 

                                 with a sample code.

 

 

 

  Thank you in Advance.

 

 

   Hi guys,

 

                  I am entry level salesforce devoloper plese clear my problem

 

                  ex: i have written a trigger on contact for when the account 

 

                    is changed all the contacts will change. it is working .

 

                  But this time can i write a trigger on contact when the contact

 

               is changed the related account will change. but not all contacts of account . please give a sample code.

 

 

    Thank  you in advance! 

 

 

   Hi guys,

 

                  I am entry level salesforce devoloper plese clear my problem

 

                  ex: i have written a trigger on contact for when the account 

 

                    is changed all the contacts will change. it is working .

 

                  But this time can i write a trigger on contact when the contact

 

               is changed the related account will change. but not all contacts of account . please give a sample code.

 

 

    Thank  you in advance! 

trigger udatetrig on contact (after update)

 

{list<lead> plist=new list<lead>();

 

for(contact a:trigger.new)

{

for(lead c:[select Name from lead where contactid=:a.id])

{

c.lastname=a.lastname;c.

 

contactid=a.id;plist.add(c);

}

}

update plist;

}

 

 

I have an Error as "" Error: Compile Error: Invalid field contactid for SObject Lead at line 9 column 1""

 

 

please solve my problem

 

Thanks in Advance.