function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
OnCloud9OnCloud9 

Confusing for me, hopefully not for you =)

Hello SFDC boards,

 

I have a situation, and honestly, don't know how to tackle it.  So here I am looking for your expertise- and thank you in advance. =)

 

I have 2 objects in place: Leads & Lookup_Table__c

 

When a lead is created with a  Zip Code value, I need the same zip code to be populated on a lookup field on the lead record.  The reason I need this is to tie the Lead & LookUpTable so I can bring information on the lead record.

 

This is my dream process:

 

1) Lead gets created through web-to-lead form

2) Zip code (text) gets copied into ZipCode2__c (lookup field to Lookup_Table__c object).

3) Record Saves

4) Lead record now displays information from lookuptable on lead record.  ( i have this down through formula fields)

 

I have tried creating #2 through a workflow but can't touch the lookup field.  Everything else is in place.  Can you please help me write a trigger to accomplish this (copy a field value into a lookup field)?

 

Thanks again!

Best Answer chosen by Admin (Salesforce Developers) 
OnCloud9OnCloud9