Dear All,
please help for the below mentioned Question.
How do we assign the Customer Lookup value to Another Customer Lookup In Plugin Code for my D365 On Premises.
I have two entities, one Is Employee and another is Department.
From The customer Lookup of Employee Entity i want to assign value to Department Customer Lookup.
i have tried this But it didn't worked
EntityReference customer = (EntityReference)Employee["new_customer"];
Department["lvt_customer"] = new EntityReference(customer .LogicalName, customer .Id);
Employee -Target Entity.
Department-i am creating and assigning the values to this entity from (Employee)Target,
Regards,
Krishna.









