Hi All,
This problem appeared for me recently (about a week ago or less). Whenever I create a supportcase and set a recordref for the contact (SupportCase.contact), the case is created in netsuite without the contact set. There are no errors at any stage, the response says it is successful. This is a huge problem because it means our customers do not get a message letting them know we've created a support case.
This is my SOAP request:
<?xml version="1.0" encoding="utf-8"?> <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> <soap:Header> <preferences xmlns="urn:messages_2010_1.platform.webservices.netsuite.com"> <ignoreReadOnlyFields>true</ignoreReadOnlyFields> </preferences> </soap:Header> <soap:Body> <add xmlns="urn:messages_2010_1.platform.webservices.netsuite.com"> <record xmlns:q1="urn:support_2010_1.lists.webservices.netsuite.com" xsi:type="q1:SupportCase"> <q1:outgoingMessage><html> <head><title>Journal Queue Notification</title></head> <body style="text-align:left; font-size:11pt; font-family:Calibri; color:#153456;"> <p> Dear Andrew Leith </p> <p> The Mimecast automated system checks have identified an issue with the Journal Queue for A1 - Mimecast Global <i>C1A1</i>. </p> <p> At 12/09/2011 14:45:05 the Journal Queue was 5000 messages. This exceeeds the queue threshold currently set at 1000. </p> <p> Please investigate this issue as it may cause a buildup of email in your Journal Service account. </p> <p> For additional information please visit the <b>Mimecast Knowledge Base</b> which can be found in your Mimecast interface. </p> <p> Please don't hesitate to contact us should you require our assistance. </p> <p> Kind Regards </p> <p> Mimecast Service Delivery Team </p> </body></html></q1:outgoingMessage> <q1:emailForm>true</q1:emailForm> <q1:internalOnly>false</q1:internalOnly> <q1:customForm internalId="6"> <name xmlns="urn:core_2010_1.platform.webservices.netsuite.com">customform</name> </q1:customForm> <q1:title>C1A1 Mimecast Automated System Check - Journal Queue issue detected for A1 - Mimecast Global</q1:title> <q1:company internalId="411" type="customer" /> <q1:contact internalId="404505" type="contact" /> <q1:status internalId="1" type="supportCaseStatus" /> <q1:origin internalId="3" type="supportCaseOrigin" /> <q1:assigned internalId="564" type="employee" /> <q1:customFieldList> <customField xsi:type="SelectCustomFieldRef" internalId="custeventcasetype" xmlns="urn:core_2010_1.platform.webservices.netsuite.com"> <value internalId="1" /> </customField> <customField xsi:type="SelectCustomFieldRef" internalId="custeventcategory" xmlns="urn:core_2010_1.platform.webservices.netsuite.com"> <value internalId="30" /> </customField> <customField xsi:type="SelectCustomFieldRef" internalId="custeventsupportissue" xmlns="urn:core_2010_1.platform.webservices.netsuite.com"> <value internalId="185" /> </customField> <customField xsi:type="SelectCustomFieldRef" internalId="custeventissuereasonmatrix" xmlns="urn:core_2010_1.platform.webservices.netsuite.com"> <value internalId="249" /> </customField> </q1:customFieldList> </record> </add> </soap:Body> </soap:Envelope>
And the SOAP response:<?xml version="1.0" encoding="utf-8"?> <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <soapenv:Header> <platformMsgs:documentInfo xmlns:platformMsgs="urn:messages_2010_1.platform.webservices.netsuite.com"> <platformMsgs:nsId>WEBSERVICES_601905_101120112084775932076514021_fd7ba0dcb5ded</platformMsgs:nsId> </platformMsgs:documentInfo> </soapenv:Header> <soapenv:Body> <addResponse xmlns="urn:messages_2010_1.platform.webservices.netsuite.com"> <writeResponse> <platformCore:status isSuccess="true" xmlns:platformCore="urn:core_2010_1.platform.webservices.netsuite.com"/> <baseRef internalId="213230" type="supportCase" xsi:type="platformCore:RecordRef" xmlns:platformCore="urn:core_2010_1.platform.webservices.netsuite.com"/> </writeResponse> </addResponse> </soapenv:Body> </soapenv:Envelope>
This is the portion of code (c#) where I am setting the contact information: // Create the support case var sc = new SupportCase(); // Set the contact who will receive the email notification if (contact != null) { sc.contact = new RecordRef(); sc.contact.internalId = contact.internalId; sc.contact.type = NetsuiteWebService.RecordType.contact; sc.contact.typeSpecified = true; }Then I'm setting all the other information and calling add.Is this happening for anyone else? The code was working for me previously so I'm stumped!!