Discussions
Narrative Insights is Temporarily Unavailable due to an Infrastructure Issue. Learn how This Impacts Your Account and What to Expect While the Feature is Disabled.
Error when creating customer record: An unexpected error occurred. Error ID: j9066vxpxus1u7rc9vsr
Trying to create customer record with using custom form that has some mandatory fields i already passing the values. Getting error don't know what does it mean "An unexpected error occurred. Error ID: j9066vxpxus1u7rc9vsr"
//sample code
Customer customer = new Customer();
customer.companyName = "Body Shop2";
customer.entityId = "custform_39_1043917_298";
customer.email = "bodyshop2@test.com";
// Set email preference
customer.emailPreference = EmailPreference._hTML;
customer.emailPreferenceSpecified = true;
// Set entity status.
// The default status is "Closed Won" which has an internal ID of 13
RecordRef status = new RecordRef();
status.internalId = NSUtility.ReadStringWithDefault(" Entity status internal ID (press enter for default value of Closed Won): ", "13");