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
KyoKyo 

Change Field Type

 

trigger PopWebCasetoField on Case(before insert)
{
For (Case c : Trigger.new){
        if(c.Origin == 'Web'{
        c.ContactID = c.Email_Description__c;     
        }
}
}

 

 

I can't pop data because Type not macth.

ContacctID Type Lookup and Email Des Type Text;

Please help me.

 

Thank you so much.

bob_buzzardbob_buzzard

You won't be able to write text to an id field.  Can you explain why you want to write a descriptive text field to a lookup?

KyoKyo

Hi Bob

Email_Description__c I use a Field Test!

 

My needs is the Field SuppliedName from Web-to-Case put in Field Contact. WhenCase was created by a web-to-case, it will auto poppulate SuppliedName to Contact.

 

Thank you so much