Hi Jose,
Are you using any javascript code to load data in lookup on form load event on field change event. Can you try below code with little changes of the fields name wherever it is required and see if that works... And also refer this post with an example... http://duanenapier.wordpress.com/category/microsoft-dynamics-crm/microsoft-dynamics-crm-2013/
Step 1: Retrieve the data for the selected City record in your City Lookup using the CRM 2011 REST EndPoint
Step 2: Set the value of your Province field with the result of the REST Web Service Query
The code below is an example you can use with CRM 2011:
//Retrieve Product
function RetrieveProvince {
//Get the Selected City
if(Xrm.Page.getAttribute("<name_of_city_field_on_case>").getValue() != null)
{
var id = Xrm.Page.getAttribute("<name_of_city_field_on_case>").getValue()[0].id;
var _oPath = Xrm.Page.context.getServerUrl() + "/XRMServices/2011/OrganizationData.svc";
var _retrieve = new XMLHttpRequest();
_retrieve.open("GET", _oPath + "/<name_of_city_entity>Set(guid'" + id + "')", true);
_retrieve.setRequestHeader("Accept", "application/json");
_retrieve.setRequestHeader("Content-Type", "application/json; charset=utf-8");
_retrieve.onreadystatechange = function () { RetrieveCityRequestCallback(this); };
_retrieve.send();
}
}
function RetrieveCitytRequestCallback(_retrieve)
{
if(_retrieve.readyState == 4)
{
if(_retrieve.status == 200)
{
var _city = JSON.parse(_retrieve.responseText).d;
if(_city.<name_of_province_field>.Value != null)
{
Xrm.Page.getAttribute("<name_of_province_field_on_case>").setValue(_city.<name_of_province_field>.Value;
}
}
else
{
window.alert("There was an error retrieving Province Information");
}
}
}