Discussions
Read on for the latest updates including:
• Agenda Builder launch
• SuiteWorld On Air registration
• New NetSuite Prompt Studio Contest
• And more!
Check out this thread to learn more!
Don’t miss your chance to meet our SuiteGurus—NetSuite Support professionals and subject matter experts with extensive experience in select product areas, including OneWorld, Advanced & Basic Accounting, Supply Chain Management, Receivables & Payables, CRM, Account Administration, and the SuiteCloud Platform. Full Conference attendees can prebook exclusive 30-minute one-on-one sessions for your product questions.
Spots are limited! Register through your Agenda Builder and find SuiteGuru under Agenda Enhancements.
attaching a contact to a "Lead"
Hi,
My code works fine when attaching contacts to customers but am receiving the following error when attempting to attach a contact to a Lead.
Invalid CUSTOMER reference key.
my code is:
WriteResponse response;
RecordRef contactRole = new RecordRef();
contactRole.internalId = roleID;
contactRole.type = RecordType.contactRole;
contactRole.typeSpecified = true;
RecordRef contactRef = new RecordRef();
contactRef.internalId = _contactID;
contactRef.type = RecordType.contact;
contactRef.typeSpecified = true;
RecordRef attachTo = new RecordRef();
attachTo.internalId = companyID;
attachTo.type = RecordType.customer;
attachTo.typeSpecified = true;
AttachContactReference attachReference = new AttachContactReference();
attachReference.attachTo = attachTo;
attachReference.contact = contactRef;
attachReference.contactRole = contactRole;
You can attach contacts to leads on the UI so I would think you can do it through WS?