+ 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