Hi,
I have a custom entity called 'Project'. This entity is linked to a company id and person id where these two fields are of type 'Adv Search Select'.
When creating new project record only project name and company id fields are mandatory. When saving a record i ll get the following error message :
[SafeCall Exception]: UnexpectedEvent (Error Number: 65535)
It is important to note that i am using a custom page to accomplish this.
The code of my custom page is below:
----------------------------------------------------------------------
if(CRM.Mode ==View)
{
CRM.Mode = Edit;
}
var myBlock = CRM.GetBlock('ProjectDetailsBox');
var myRecord = CRM.CreateRecord('Project');
myBlock.Title = "Project";
CRM.AddContent(myBlock.Execute(myRecord));
Response.Write(CRM.GetPage());
if(CRM.Mode == Save)
{
Response.Redirect(CRM.URL('ProjectSearch.asp'))
}
The main key for me here is to be able to create a custom entity which can be linked to a company id (+person id optionally).
Please help me. I would really appreciate.