Hi, You can write a OData query where you can fetch record of your building based on the building id and then set the customer lookup based on that. You can use OData query designer: crm2011odatatool.codeplex.com for this Or you can write query by yourself, you need to write retrieve example to get building record check below sample from msdn msdn.microsoft.com/.../gg334427(v=crm.7).aspx To set lookup you can refer this: http://himbap.com/blog/?p=485
↧