Issue:
When qualifying a lead in CRM, we receive the following error message.
“Unable to get property ‘getUserPrivilege’ of undefined or null reference Script”
This was a customized system and we noticed the Company and Title field were missing from the lead form.
Solution:
Add the fields back on the form, and if required hide them using the script and that does not throw an error.