public void doSetNoteAttachment(string sSession, string sFilePathName, string sFileName, string sID) { SugarCRM.note_attachment oSugarNoteAttachment = new SugarCRM.note_attachment(); oSugarNoteAttachment.file = sFilePathName; oSugarNoteAttachment.filename = sFileName; oSugarNoteAttachment.id = sID; SugarCRM.set_entry_result oSugarSetEntryResult = oSugarCRM.set_note_attachment(sSession, oSugarNoteAttachment); }
public string[] doGetNoteAttachment(string sSession, string sID) { SugarCRM.return_note_attachment oSugarReturnNoteAttach = oSugarCRM.get_note_attachment(sSession, sID); SugarCRM.note_attachment oSugarNoteAttach = oSugarReturnNoteAttach.note_attachment; string[] saResults = new string[2]; saResults[0] = oSugarNoteAttach.file; saResults[1] = oSugarNoteAttach.filename; return(saResults); }
public void doSetNoteAttachment(string sSession, string sFilePathName, string sFileName, string sID) { SugarCRM.note_attachment oSugarNoteAttachment = new SugarCRM.note_attachment(); oSugarNoteAttachment.file = sFilePathName; oSugarNoteAttachment.filename = sFileName; oSugarNoteAttachment.id = sID; SugarCRM.set_entry_result oSugarSetEntryResult = oSugarCRM.set_note_attachment(sSession, oSugarNoteAttachment); }