HI, I'm making some changes to the web application e-service accelerator of CRM 4.0
I'm having problems achieving the following..
I have a contact's GUID in a variable called 'Profile.ContactID'
And I have a _caseid variable from which I want to get the 'responsiblecontactid' field of the case
Then I want to check if the 'responsiblecontactid' and the 'Profile.ContactID' are the same.
. This is my code:
DynamicEntity caseRecord2 = DynamicEntityUtility.RetrieveByIdAsDynamicEntity(_crmService, EntityName.incident.ToString(), _caseId, "responsiblecontactid", "statecode", "msa_webportalcloseflag");
Lookup contactoencargado = (Lookup)caseRecord2["responsiblecontactid"];
//THIS IS THE LINE I DON'T KNOW HOW TO WRITE. SEEMS LIKE I CAN'T ACCESS THE ID PROPERTY OF THE LOOKUP LIKE THIS
//if (contactoencargado.id == Profile.ContactId)
{
userHasPermission = true;
}
Please any help will be much appreciated. I'm just getting started with CRM Development.
*This post is locked for comments