I'm currently using the soap api.
SugarCRM Demos | Open Source Business & Social CRM - SugarCRM.
Here is is a code snippet that close a case and update his status and the account_name field which i is the one that doesnt get updated.
Code:
get_entry_list_result CaseEntry = getEntryList("case_number="+CaseNumber,"",0, Managers.CaseManager.GetCaseFields(),1, "Cases");
Objects.Case Case = Managers.CaseManager.ConvertEntryToCase(CaseEntry.entry_list[0]);
Case.Status = "Closed";
Case.AccountName = "feedback";
name_value[] CaseNV = VR.SugarCRM.Managers.CaseManager.ConvertCaseToNameValueList(Case);
set_entry_result result = this.setEntry(CaseNV, "Cases");
return Case;
Bookmarks