Results 1 to 6 of 6

Thread: C# : Problem assigning account_name to Case entry

  1. #1
    Nicopilo is offline Junior Member
    Join Date
    Jan 2012
    Posts
    6

    Default C# : Problem assigning account_name to Case entry

    Hi,

    I am currently running into an issue concerning the update of a case entry.
    When i try to assign a value (string) to the account_name field, it doesn't work ( i took a look at the account_name field type and it's a 'name" type)

    Does anyone have an idea why or can tell me what kind of variable is required to assign a value to the account_name field ?

    Thanks a lot.

    Nicolas

  2. #2
    Nicopilo is offline Junior Member
    Join Date
    Jan 2012
    Posts
    6

    Default Re: C# : Problem assigning account_name to Case entry

    Any suggestions ?

  3. #3
    sts's Avatar
    sts
    sts is offline Sugar Community Member
    Join Date
    Aug 2010
    Posts
    978

    Default Re: C# : Problem assigning account_name to Case entry

    I'm not sure what you are doing. Are you trying to use the REST/SOAP interface? Then maybe you could give us a small code snippet. What version and edition of Sugar are you using?
    Stefan Ulrich Sauer
    System Analyst

    Devoteam Danet GmbH
    Gutenbergstraße 10
    D-64331 Weiterstadt
    Germany
    email: Stefan-Ulrich.Sauer@devoteam.com
    http://www.devoteam.de

  4. #4
    Nicopilo is offline Junior Member
    Join Date
    Jan 2012
    Posts
    6

    Default Re: C# : Problem assigning account_name to Case entry

    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;

  5. #5
    Nicopilo is offline Junior Member
    Join Date
    Jan 2012
    Posts
    6

    Default Re: C# : Problem assigning account_name to Case entry

    Still having problem with this task.

    Anyone can help ?

  6. #6
    Nicopilo is offline Junior Member
    Join Date
    Jan 2012
    Posts
    6

    Default Re: C# : Problem assigning account_name to Case entry

    I'm uping this topic because i'm still stuck with this problem.

    Basically i need to update the account_name field of the Case module (where you have the list of the Cases)
    So i treated the field as if it was a string like the others ( that i can update ) but it doesn't update this field.

    So i guess its kinda of a protected field since when creating a case we need to slect through a bunch of account a valid one (that exists) and that's maybe why i cannot update this field even though i affect the right account name.

    Does anyone have a solution or am i missing something here ?

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. C# : Problem assigning account_name to Case entry
    By Nicopilo in forum Developer Help
    Replies: 1
    Last Post: 2012-01-26, 11:48 AM
  2. Replies: 0
    Last Post: 2011-08-24, 05:14 PM
  3. Replies: 0
    Last Post: 2009-04-17, 01:51 PM
  4. assigning a case to a contact?
    By cdembek in forum General Discussion
    Replies: 7
    Last Post: 2009-03-25, 12:53 AM
  5. Case account_name blank if created through soap
    By eggsurplus in forum Developer Help
    Replies: 1
    Last Post: 2008-01-25, 08:17 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •