<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://forums.method.me/cs/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Method:API Q&amp;A</title><link>http://forums.method.me/cs/forums/15.aspx</link><description>Ask questions specific to the MethodAPI from the Method Team and other Method users.</description><dc:language>en</dc:language><generator>CommunityServer 2007.1 SP2 (Build: 31113.47)</generator><item><title>Re: Strange behavior of Customer.BillAddressAddr1 when adding via MethodAPIInsert</title><link>http://forums.method.me/cs/forums/thread/19485.aspx</link><pubDate>Sun, 20 Oct 2013 17:18:31 GMT</pubDate><guid isPermaLink="false">3393c1ec-311b-4812-96cb-ad8c611bba4f:19485</guid><dc:creator>dbornet</dc:creator><slash:comments>0</slash:comments><comments>http://forums.method.me/cs/forums/thread/19485.aspx</comments><wfw:commentRss>http://forums.method.me/cs/forums/commentrss.aspx?SectionID=15&amp;PostID=19485</wfw:commentRss><description>&lt;p&gt;&lt;br /&gt;&lt;span id="mce_0_start" style="overflow:hidden;"&gt;I tried this.&amp;nbsp; Had to remove &amp;quot;EntityType&amp;quot; which is a field that doesn&amp;#39;t support Add.&amp;nbsp; Then it worked fine.&lt;/span&gt;&lt;/p&gt;</description></item><item><title>Re: Strange behavior of Customer.BillAddressAddr1 when adding via MethodAPIInsert</title><link>http://forums.method.me/cs/forums/thread/19484.aspx</link><pubDate>Sun, 20 Oct 2013 17:06:12 GMT</pubDate><guid isPermaLink="false">3393c1ec-311b-4812-96cb-ad8c611bba4f:19484</guid><dc:creator>dbornet</dc:creator><slash:comments>0</slash:comments><comments>http://forums.method.me/cs/forums/thread/19484.aspx</comments><wfw:commentRss>http://forums.method.me/cs/forums/commentrss.aspx?SectionID=15&amp;PostID=19484</wfw:commentRss><description>&lt;p&gt;&lt;span id="mce_0_start" style="overflow:hidden;"&gt;Ah!&amp;nbsp; That makes sense, thanks.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="overflow:hidden;"&gt;No, what I put into Addr1 didn&amp;#39;t move to Addr2, I was testing with Addr1 and Addr2, Addr1 disappeared (or sometimes got replaced by CompanyName) and Addr2 stayed put.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="overflow:hidden;"&gt;Perhaps you can just advise me on how to do what I need to do.&lt;span id="mce_2_start" style="overflow:hidden;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="overflow:hidden;"&gt;Via the API, what I&amp;#39;m trying to add is a Lead, not a Customer.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="overflow:hidden;"&gt;The lead has a name (first/last), a company name, an address (two lines thereof plus city, state and zip), phone number, email, website and a couple of other datums.&amp;nbsp; &lt;span id="mce_7_start" style="overflow:hidden;"&gt;This all comes from a form that was filled in on &lt;/span&gt;our website.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="overflow:hidden;"&gt;Other than the two lines of address, here are the fields I&amp;#39;ve populated: Name, FirstName, LastName, CompanyName, BillAddressCity, BillAddressState, BillAddressPostalCode, Phone, Email, Website, AltPhone and AssignedTo.&lt;span id="mce_1_start" style="overflow:hidden;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="overflow:hidden;"&gt;I&amp;#39;ve had no trouble with all of the various pieces except for the two lines of address, and how to flag that this record is a lead and not a customer.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="overflow:hidden;"&gt;Based on records already in Method that I exported and looked at, and based on what you wrote, I&amp;#39;m thinking (haven&amp;#39;t tested this yet) that I should &lt;/span&gt;&lt;span style="overflow:hidden;"&gt;put the lead name into Addr1, my two lines of address into Addr2 and Addr3, set IsLeadStatusOnly to true, set EntityType to &amp;#39;Customer Lead&amp;#39; and set LeadStatus to &amp;#39;Open&amp;#39;.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="overflow:hidden;"&gt;Is that correct, or do you advise something else?&lt;span id="mce_4_start" style="overflow:hidden;"&gt;&lt;span id="mce_5_start" style="overflow:hidden;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="overflow:hidden;"&gt;Thanks for your help!&lt;/span&gt;&lt;/p&gt;</description></item><item><title>Re: Strange behavior of Customer.BillAddressAddr1 when adding via MethodAPIInsert</title><link>http://forums.method.me/cs/forums/thread/19466.aspx</link><pubDate>Fri, 18 Oct 2013 13:18:21 GMT</pubDate><guid isPermaLink="false">3393c1ec-311b-4812-96cb-ad8c611bba4f:19466</guid><dc:creator>mlongacre</dc:creator><slash:comments>0</slash:comments><comments>http://forums.method.me/cs/forums/thread/19466.aspx</comments><wfw:commentRss>http://forums.method.me/cs/forums/commentrss.aspx?SectionID=15&amp;PostID=19466</wfw:commentRss><description>&lt;p&gt;&lt;br /&gt;&lt;span style="overflow:hidden;" id="mce_1_start"&gt;Yes, the Addr1-5 fields are special - there are operations happening in QuickBooks to re-arrange the data&lt;span style="overflow:hidden;" id="mce_3_start"&gt;.&amp;nbsp; If you put data in Me&lt;span style="overflow:hidden;" id="mce_4_start"&gt;&lt;/span&gt;thod, it will send it to QuickBooks, but then QuickBooks will re-arrange it and update Method to change the info.&lt;span style="overflow:hidden;" id="mce_5_start"&gt;&amp;nbsp; It is a major pain.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="overflow:hidden;"&gt;&lt;span style="overflow:hidden;"&gt;&lt;span style="overflow:hidden;"&gt;Have you checked to see if the address you put in the BillAddr1 field has been moved to BillAddr2?&amp;nbsp; QuickBooks wants a Name in BillAddr1.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="overflow:hidden;" id="mce_0_start"&gt;&lt;/span&gt;&lt;/p&gt;</description></item><item><title>Strange behavior of Customer.BillAddressAddr1 when adding via MethodAPIInsert</title><link>http://forums.method.me/cs/forums/thread/19463.aspx</link><pubDate>Fri, 18 Oct 2013 02:46:21 GMT</pubDate><guid isPermaLink="false">3393c1ec-311b-4812-96cb-ad8c611bba4f:19463</guid><dc:creator>dbornet</dc:creator><slash:comments>0</slash:comments><comments>http://forums.method.me/cs/forums/thread/19463.aspx</comments><wfw:commentRss>http://forums.method.me/cs/forums/commentrss.aspx?SectionID=15&amp;PostID=19463</wfw:commentRss><description>&lt;p&gt;&lt;span id="mce_0_start" style="overflow:hidden;"&gt;I can duplicate this at will.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;It goes like this (in all examples bel&lt;span id="mce_1_start" style="overflow:hidden;"&gt;&lt;/span&gt;ow, assume additional fields for valid strCompanyAccount, strLogin and strPassword, also assume that my actual code syntax is correct with all proper quotes and so on):&lt;/p&gt;
&lt;p&gt;I use&amp;nbsp;MethodAPIInsert to insert a record into the Customer table, with the following field/values:&lt;/p&gt;
&lt;p&gt;Name = D&lt;span id="mce_2_start" style="overflow:hidden;"&gt;&lt;/span&gt;aria Test1&lt;br /&gt;FirstName = Daria&lt;br /&gt;CompanyName = MyCompany&lt;br /&gt;BillAddressAddr1 = &amp;quot;1 Main St&amp;quot;.&lt;/p&gt;
&lt;p&gt;I then&lt;span id="mce_5_start" style="overflow:hidden;"&gt; (in the same code&lt;span id="mce_15_start" style="overflow:hidden;"&gt;, immediately afterwards&lt;/span&gt;)&lt;/span&gt; use&amp;nbsp;MethodAPISelect_XML with the following field/values&lt;span id="mce_6_start" style="overflow:hidden;"&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;strTable = Customer&lt;br /&gt;strFields = Name, FirstName,&amp;nbsp;CompanyName, BillAddressAddr1&lt;br /&gt;strWhereClause = &amp;quot;FirstName = &amp;#39;Daria&amp;#39;&amp;quot;&lt;br /&gt;strGroupByClause, strHaving and strOrderBy are empty.&lt;span id="mce_14_start" style="overflow:hidden;"&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;IOW I pull all records where the first name is Dari&lt;span id="mce_4_start" style="overflow:hidden;"&gt;&lt;/span&gt;a.&lt;/p&gt;
&lt;p&gt;It returns the following. &amp;nbsp;This is correct.&lt;/p&gt;
&lt;p&gt;&lt;span style="overflow:hidden;"&gt;&lt;span id="mce_8_start" style="overflow:hidden;"&gt;&lt;/span&gt;&lt;/span&gt;&amp;lt;Record&amp;gt;&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;lt;Name&amp;gt;Daria Test1&amp;lt;/Name&amp;gt;&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;lt;FirstName&amp;gt;Daria&amp;lt;/FirstName&amp;gt;&lt;br /&gt;&lt;span id="mce_9_start" style="overflow:hidden;"&gt; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&amp;lt;CompanyName&amp;gt;TheCompany&amp;lt;/CompanyName&amp;gt;&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;lt;BillAddressAddr1&amp;gt;1 Main St&amp;lt;/BillAddressAddr1&amp;gt;&lt;br /&gt;&amp;lt;/Record&amp;gt;&lt;/p&gt;
&lt;p&gt;NOW I take the same code and change the insert field values as follows:&lt;span id="mce_7_start" style="overflow:hidden;"&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Name = Daria Test2&lt;br /&gt;BillAddressAddr1 = &amp;quot;2 Main St&amp;quot;.&lt;/p&gt;
&lt;p&gt;other fields stay the same as they were.&lt;/p&gt;
&lt;p&gt;I then run all this again (which does another insert and select, so there should now be two records with first name of Daria).&lt;/p&gt;
&lt;p&gt;What it gives me is this:&lt;span id="mce_10_start" style="overflow:hidden;"&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="overflow:hidden;"&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&amp;lt;Record&amp;gt;&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;lt;Name&amp;gt;Daria Test1&amp;lt;/Name&amp;gt;&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;lt;FirstName&amp;gt;Daria&amp;lt;/FirstName&amp;gt;&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;lt;CompanyName&amp;gt;TheCompany&amp;lt;/CompanyName&amp;gt;&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;lt;BillAddressAddr1 /&amp;gt;&lt;br /&gt; &amp;lt;/Record&amp;gt;&lt;br /&gt; &amp;lt;Record&amp;gt;&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;lt;Name&amp;gt;Daria Test2&amp;lt;/Name&amp;gt;&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;lt;FirstName&amp;gt;Daria&amp;lt;/FirstName&amp;gt;&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;lt;CompanyName&amp;gt;TheCompany&amp;lt;/CompanyName&amp;gt;&lt;span id="mce_13_start" style="overflow:hidden;"&gt;&lt;/span&gt;&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;lt;BillAddressAddr1&amp;gt;2 Main St&amp;lt;/BillAddressAddr1&amp;gt;&lt;br /&gt; &amp;lt;/Record&amp;gt;&lt;/p&gt;
&lt;p&gt;Take a good look at the first record. &amp;nbsp;What happened to the address?&lt;span id="mce_17_start" style="overflow:hidden;"&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="overflow:hidden;"&gt;This repeats - if I add a 3rd record, it keeps its address but the 2nd record loses it.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;If I now go into Method CRM and look at the record&lt;span id="mce_18_start" style="overflow:hidden;"&gt;s&lt;/span&gt; I created (any of them), the address is missing.&lt;span id="mce_16_start" style="overflow:hidden;"&gt; &amp;nbsp;And, having done so, if I now do just a select using the API function, the address is gone from all the records.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="overflow:hidden;"&gt;&lt;span id="mce_21_start" style="overflow:hidden;"&gt;&lt;span id="mce_23_start" style="overflow:hidden;"&gt;Is there something special about Addr1 that it should not be used?&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Please advise...&lt;span id="mce_22_start" style="overflow:hidden;"&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;</description></item></channel></rss>