I have an entity named as Car, in this entity I have a contact lookup field where I can select contact.
Now my requirement to develop a plugin which will execute on Create at PreOperation Stage.
This plugin should get all the fields from contact entity of against selected contact.
Code which I tried so far
string fullname = ((EntityReference)entity["taqi_checkoutcontact"]).Name;
When I debug this code it give Name as null.
also I'm able to get values of all fields other then lookup
Can someone please help.