I am trying to look up a company record and see if it is a private individual upon creation of a contact record on the OnLoad function of a contact form.
How do I access the parent company record after getting its GUID and how do I access the field for private individual?
Are there any function in javscript that do this? Where is the documentation that I can read to find out?
This is what I have so far:
// parent company variable
var parentcomp ;
var CRM_FORM_TYPE_CREATE = 1;
if (crmForm.FormType == CRM_FORM_TYPE_CREATE)
// Get the GUID of the parent customer
parentcomp = crmForm.all.parentcustomerid.DataValue.id;
// Need to find the code to lookup the parent company and then read the 'is private individual' field
if (“parent company is private individual”)
* do action*