Friday, November 21, 2008 ..:: Forums ::.. Register  Login
 Forums Minimize
SearchForum Home
     
  Plug-in and Platform Forums  Outlook 2003 Plug-in  PostalCode -> S...
 PostalCode -> State in LoadCRMContacts
 
AllStoneTech
27 posts
Joined
9/22/2006

PostalCode -> State in LoadCRMContacts
Posted: 14 Nov 06 9:48 AM

I was digging through the Add-In code and noticed the following.   PostalCode holds state data and State data holds PostalCode data.  (In Contact.cs / LoadCRMContacts) It appears that the code is written this way to fix a bug in Sugar's get_entries Soap call.  was this bug replicated in Splendid?   It appears that the bug has also been replicated in Sugar 4.5.   This doesn't make a lot of sense to me.  Am I missing something?  Any explanation?

case "primary_address_city" : XmlUtil.SetSingleNode(xContact, "primary_address_city" , sValue); break;
case "primary_address_state" : XmlUtil.SetSingleNode(xContact, "primary_address_postalcode" , sValue); break;
case "primary_address_postalcode" : XmlUtil.SetSingleNode(xContact, "primary_address_state" , sValue); break;
case "primary_address_country" : XmlUtil.SetSingleNode(xContact, "primary_address_country" , sValue); break;
case "alt_address_street" : XmlUtil.SetSingleNode(xContact, "alt_address_street" , sValue); break;
case "alt_address_city" : XmlUtil.SetSingleNode(xContact, "alt_address_city" , sValue); break;
case "alt_address_state" : XmlUtil.SetSingleNode(xContact, "alt_address_postalcode" , sValue); break;
case "alt_address_postalcode" : XmlUtil.SetSingleNode(xContact, "alt_address_state" , sValue); break;
case "alt_address_country" : XmlUtil.SetSingleNode(xContact, "alt_address_country" , sValue); break;
 
Thanks
support
2100 posts
1st
Joined
1/3/2006

Re: PostalCode -> State in LoadCRMContacts
Posted: 14 Nov 06 12:31 PM Modified By support  on 11/14/2006 12:31:59 PM)

Looks like a cut-and-paste bug.  We will fix it on our end.

Thanks for catching this bug.

 

AllStoneTech
27 posts
Joined
9/22/2006

Re: PostalCode -> State in LoadCRMContacts
Posted: 15 Nov 06 11:59 AM

That's what I assumed at first as well, but the values are being assigned correctly.   Apparently your code is accomadating a bug in the Sugar code.  Sugar Soap is assigning State to PostalCode and PostalCode to State.   I've walked through the code and it's wrong on returning from the Get_Entries Soap Invocation.  When the following code is executed the result is wrong.  I don't know enough about the convuluted PHP code to understand how it's even messing up and why only on State/PostalCode, but i do know that it is messing up, and that you guys are accomodating their bug (and apparently introduced the same bug in SplendidCRM?).

         Crm.get_entry_result oGetResult = crm.get_entries(_sSessionID, "Contacts", aContactsToRetrieve, Contact.Fields());

This isn't a showstopper since the work around is implemented but it is a frustrating bit of code I'd like to understand and add commetns about to the code.  Any knowledge shared on this would be appreciated.

Thanks

AllStoneTech
27 posts
Joined
9/22/2006

Re: PostalCode -> State in LoadCRMContacts
Posted: 15 Nov 06 2:47 PM

Ok, it is a Splendid Plug-In C&P error.  By the time i noticed iy, my Sugar data had already been corrupted so it looked like it was passing in correct data.   The data was being stored flipped in Outlook and then synced back flipped to Sugar.

Ain't life grand!   I love it when things make sense.

  Plug-in and Platform Forums  Outlook 2003 Plug-in  PostalCode -> S...

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.