Hi,
I am not able to post in 'Microsoft.NET' forum category as it is giving in invalid URL message.
I am trying add 'Notes' to an existing 'Support Case' through suite talk api.
I am able to add a note and for some reason, it does not tie to the 'Case' though I am referencing the 'Case' entity. I am able to view the notes in NS if the directly go to the 'Note' URL.
I am not sure if am missing some reference in the note object.
Here is my code:
var caseRecordRef = new RecordRef
{
internalId = caseInternalId,
type = RecordType.supportCase,
typeSpecified = true
};
var caseNote = new Note
{
externalId = dbCaseNote.ExternalId,
title = dbCaseNote.Name,
note = dbCaseNote.Body,
noteDate = dbCaseNote.Created,
noteDateSpecified = true,
noteType = new RecordRef()
{
internalId = "7"//Note(Other types Email, call, Email, meeting etc),
},
entity = caseRecordRef
};
// Invoke add() operation
var addCaseNoteResponse = service.NetSuiteService.add(caseNote);
Can anybody see what I am missing here? I appreciate any suggestions on how might solve this issue.
Thanks in advance.