You need to sign in to do that
Don't have an account?
Ujwala
Assign value to relationship lookup
Hi all,
I am getting this error for following code. Where C__FKClient__c and Owner__c are user lookup. I want to set email field value to C__FKClient__c from Owner__c
inc=new C__FKClient__c();
inc.C__FKClient__c = pendingresponse[i].wrap_input.Owner__c;
string clienEmail= pendingresponse[i].wrap_input.Owner__r.email;
system.debug(clienEmail); // prints email value properly...
if(clienEmail!=null){
inc.C__FKClient__r.email = clienEmail; // getting error for this field
}
How to assign email value .. ??
I am getting this error for following code. Where C__FKClient__c and Owner__c are user lookup. I want to set email field value to C__FKClient__c from Owner__c
inc=new C__FKClient__c();
inc.C__FKClient__c = pendingresponse[i].wrap_input.Owner__c;
string clienEmail= pendingresponse[i].wrap_input.Owner__r.email;
system.debug(clienEmail); // prints email value properly...
if(clienEmail!=null){
inc.C__FKClient__r.email = clienEmail; // getting error for this field
}
How to assign email value .. ??
Ujwala
Sorry in above code i initialised inc variable as inc=new incident__c();