• Corie Dahlke
  • NEWBIE
  • 10 Points
  • Member since 2015

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 1
    Questions
  • 5
    Replies
I have two custom fields on the Opportunity object, a text field and a lookup field.  The text field gets populated from an outside source and I want to populate the contents of text field  and have it display in the lookup field.

I need help to create a simple trigger for this on the Opportunity object.

**Opportunity object**
text field - Discount_Code__c 
lookup field - Discount_code_LU__c 

Basic logic would be "Discount_Code_LU__c = Discount_Code__c"
I have two custom fields on the Opportunity object, a text field and a lookup field.  The text field gets populated from an outside source and I want to populate the contents of text field  and have it display in the lookup field.

I need help to create a simple trigger for this on the Opportunity object.

**Opportunity object**
text field - Discount_Code__c 
lookup field - Discount_code_LU__c 

Basic logic would be "Discount_Code_LU__c = Discount_Code__c"