Thursday, November 20, 2008 ..:: Forums ::.. Register  Login
 Forums Minimize
SearchForum Home
     
  Mainstream Forums  Developers  Soap not compat...
 Soap not compatible with SugarCRM
 
Developer58
12 posts
Joined
8/28/2008

Soap not compatible with SugarCRM
Posted: 13 Sep 08 9:01 AM
Hi,

I thought that the soap implementation was completely compatible with SugarCRM. Am i wrong?

get_entry_list(string session, string module_name, string query, string order_by, int offset, string[] select_fields, int max_results, int deleted)

select_fields isn't used at all in the sql query, which results in returning ALL the fields from the chosen module!

I'm writing a program that should consume both the Sugar and Splendid webservice. Looks like i need to create seperate helperclasses for each :-(

Tnx,
Dirk
Developer58
12 posts
Joined
8/28/2008

Re: Soap IS compatible with SugarCRM
Posted: 13 Sep 08 9:14 AM
Correction, Splendid uses the select_fields (at first):

// 02/16/2006 Paul.  SugarCRM 3.5.1 returns all fields even though only a few were requested.  We will do the same.

But returns all.

How can i best overcome this?

support
2098 posts
1st
Joined
1/3/2006

Re: Soap IS compatible with SugarCRM
Posted: 13 Sep 08 1:22 PM
Why is it a big issue?  What is the problem with receiving all the fields?
Developer58
12 posts
Joined
8/28/2008

Re: Soap IS compatible with SugarCRM
Posted: 13 Sep 08 5:51 PM
Problem is
  1. Speed (why 16 fields if i only need 6)
  2. I build a dataset that expects the requested fields
  3. Compatibility, the result is unexpected.
I solved issue 2 with this:

//Loop trough the columns
                foreach (name_value value in entry.name_value_list)
                    // fix for SplendidCRM returning ALWAYS all fields.
                    for (int i = 0; i < fields.Length; i++)
                        if (fields[i] == value.name)
                        {
                            _case[value.name] = value.value;
                            break;
                        }
  Mainstream Forums  Developers  Soap not compat...

Forum Home  Search       

Copyright (c) 2006-2008 SplendidCRM Software, Inc. All Rights Reserved.   Terms Of Use  Privacy Statement
DotNetNuke® is copyright 2002-2008 by Perpetual Motion Interactive Systems Inc.
SplendidCRM and SplendidCRM Software are trademarks of SplendidCRM Software, Inc. SugarCRM is a trademark of SugarCRM Inc. in the United States, the European Union and other countries. All other trademarks used in this web site are the property of their respective owners.