• Mansoor S 5
  • NEWBIE
  • 0 Points
  • Member since 2020

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 1
    Questions
  • 0
    Replies
How to give values to lookup fields in apex class..like to give account name in opportunity object using apex class.

public opportunity op= new opportunity();
op.account='Burlington Textiles Corp of America';

i tried even by giving id of that record..but getting error as if illegal assisgnment..could any one help me out please