<?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>Search results by user ID 6767</title><link>http://forums.method.me/cs/search/SearchResults.aspx?o=DateDescending&amp;u=6767</link><description>Search results by user ID 6767</description><dc:language>en-US</dc:language><generator>CommunityServer 2007.1 SP2 (Build: 31113.47)</generator><item><title>Re: Sending method invoice (API)</title><link>http://forums.method.me/cs/forums/p/7053/26330.aspx#26330</link><pubDate>Mon, 16 Mar 2015 17:27:11 GMT</pubDate><guid isPermaLink="false">3393c1ec-311b-4812-96cb-ad8c611bba4f:26330</guid><dc:creator>Method_Alexander</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Creating an invoice and generating a portal link is perfectly possible through the API. &amp;nbsp;You first have to create the invoice, and line items, then call send to desktop, and finally generate a portal link.&lt;/p&gt;
&lt;p&gt;I&amp;#39;ve attached a code sample which does this below for a simple invoice&lt;/p&gt;
&lt;p&gt;&lt;span style="overflow:hidden;"&gt;&lt;span style="overflow:hidden;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;var MAPIsvc = new MethodAPIServi&lt;span id="mce_2_start" style="overflow:hidden;"&gt;&lt;/span&gt;ce.Service();&lt;br /&gt; string account = txtAccountName.Text;&lt;br /&gt; string email = txtLoginEmail.Text;&lt;br /&gt; string pwd = txtLoginPassword.Text;&lt;span id="mce_8_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;string recordId = &amp;quot;&amp;quot;;&lt;br /&gt; string tablename = &amp;quot;Invoice&amp;quot;;&lt;br /&gt; string[ fields = &amp;quot;Customer,BillAddressAddr1,DueDate,TxnDate&amp;quot;.Split(&amp;#39;,&amp;#39;);&lt;br /&gt; string[ values = &amp;quot;Fake Company,123 Fake St,2015-03-16 12:00:00,2015-03-16 12:00:00&amp;quot;.Split(&amp;#39;,&amp;#39;);&lt;br /&gt; txtResponse.Text = MAPIsvc.MethodAPIInsert(account, email, p&lt;span id="mce_1_start" style="overflow:hidden;"&gt;&lt;/span&gt;wd, tablename, fields, values, ref recordId);&lt;br /&gt; &lt;span id="mce_4_start" style="overflow:hidden;"&gt;&lt;/span&gt;&lt;br /&gt; tablename = &amp;quot;InvoiceLine&amp;quot;;&lt;br /&gt; fields = &amp;quot;InvoiceRecordID,Item,Quantity,Rate,RateInclusive,SalesTaxCode&amp;quot;.Split(&amp;#39;,&amp;#39;);&lt;br /&gt; values = (recordId+&amp;quot;,Hours,10,25,25,Non&amp;quot;).Split(&amp;#39;,&amp;#39;);&lt;br /&gt; txtResponse.Text = MAPIsvc.MethodAPIInsert(account, email, pwd, tablename, fields, values, ref recordId);&lt;/p&gt;
&lt;p&gt;txtResponse.Text = MAPIsvc.MethodAPIActionSendToDesktopV2(account, email, pwd, &amp;quot;&amp;quot;, &amp;quot;Invoice&amp;quot;, recordId);&lt;/p&gt;
&lt;p&gt;&lt;span style="overflow:hidden;"&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;txtResponse.Text = MAPIsvc.MethodAPIGet&lt;span id="mce_5_start" style="overflow:hidden;"&gt;&lt;/span&gt;ScreenURLV4(account, email, pwd, null, &amp;quot;MIurl&amp;quot;, &amp;quot;Customers&amp;quot;, &amp;quot;Recent Transactions&amp;quot;, null, null, null, true, &amp;quot;Contacts_Portal&amp;quot;,&amp;quot;289&amp;quot;);&lt;/p&gt;
&lt;p&gt;&lt;span id="mce_0_start" style="overflow:hidden;"&gt;&lt;/span&gt;&lt;/p&gt;</description></item><item><title>Re: Sales Order vs Sales Receipt vs Invoice</title><link>http://forums.method.me/cs/forums/p/6961/25993.aspx#25993</link><pubDate>Fri, 20 Feb 2015 18:07:56 GMT</pubDate><guid isPermaLink="false">3393c1ec-311b-4812-96cb-ad8c611bba4f:25993</guid><dc:creator>Method_Alexander</dc:creator><description>&lt;p&gt;&lt;span id="mce_0_start" style="overflow:hidden;"&gt;StickerBrad,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Yes you should still be able to convert a lead to a customer by updating the lead status to false. You need to use&amp;nbsp;MethodAPIUpdateV2 to set&amp;nbsp;IsLeadStatusOnly to false where the RecordID matches the lead you want to convert into a customer. Here&amp;rsquo;s some sample c# code that does this:&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; var MAPIsvc = new MethodAPIService.Service();&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; string account = txtAccountName.Text;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; string email = txtLoginEmail.Text;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; string pwd = txtLoginPassword.Text;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; string RecordID_To_Update = &amp;quot;446&amp;quot;;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; string tablename = &amp;quot;Customer&amp;quot;;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; string[ updatefields = &amp;quot;IsLeadStatusOnly&amp;quot;.Split(&amp;#39;,&amp;#39;);&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; string[ updatevalues = &amp;quot;false&amp;quot;.Split(&amp;#39;,&amp;#39;);&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; txtResponse.Text = MAPIsvc.MethodAPIUpdateV2(account, email, pwd, &amp;quot;&amp;quot;, tablename, updatefields, updatevalues,RecordID_To_Update);&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;</description></item><item><title>Re: Sales Order vs Sales Receipt vs Invoice</title><link>http://forums.method.me/cs/forums/p/6961/25958.aspx#25958</link><pubDate>Thu, 19 Feb 2015 15:53:00 GMT</pubDate><guid isPermaLink="false">3393c1ec-311b-4812-96cb-ad8c611bba4f:25958</guid><dc:creator>Method_Alexander</dc:creator><description>&lt;p&gt;StickerBrad,&lt;/p&gt;
&lt;p&gt;&lt;span style="overflow:hidden;"&gt;&lt;/span&gt;&lt;/p&gt;
&lt;blockquote&gt;
&lt;div&gt;Since you are inserting already paid items, You&amp;#39;ll want to look at using Sales Receipts rather than Sales Orders.&amp;nbsp; You&amp;#39;ll first create the Sales Receipt header (Table = SalesReceipts), and then insert the items purchased as Sales Receipt Lines (Table = SalesReceiptLines) &amp;nbsp;The total from the Sales Receipt Lines will add up to create the total amount for the Sales Receipt.&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;div&gt;I&amp;#39;ve attached a code snippet of how to accomplish this.&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;/blockquote&gt;
&lt;p&gt;var MAPIsvc = new MethodAPIService.Service();&lt;br /&gt; string account = txtAccountName.Text;&lt;br /&gt; string email = txtLoginEmail.Text;&lt;br /&gt; string pwd = txtLoginPassword.Text;&lt;br /&gt; string recordId = &amp;quot;&amp;quot;;&lt;br /&gt; string tablename = &amp;quot;SalesReceipt&amp;quot;;&lt;br /&gt; string[ fields = &amp;quot;Customer,BillAddressAddr1,DueDate,TxnDate&amp;quot;.Split(&amp;#39;,&amp;#39;);&lt;br /&gt; string[ values = &amp;quot;Angy Trees,123 Fake St,2015-01-01 12:00:00,2015-01-01 12:00:00&amp;quot;.Split(&amp;#39;,&amp;#39;);&lt;br /&gt; txtResponse.Text = MAPIsvc.MethodAPIInsert(account, email, pwd, tablename, fields, values, ref recordId);&lt;/p&gt;
&lt;p&gt;tablename = &amp;quot;SalesReceiptLine&amp;quot;;&lt;br /&gt; fields = &amp;quot;SalesReceiptRecordID,Item,Quantity,Rate,SalesTaxCode&amp;quot;.Split(&amp;#39;,&amp;#39;);&lt;br /&gt; values = (recordId+&amp;quot;,Hours,10,10,NON&amp;quot;).Split(&amp;#39;,&amp;#39;);&lt;br /&gt; txtResponse.Text = MAPIsvc.MethodAPIInsert(account, email, pwd, tablename, fields, values, ref recordId);&lt;/p&gt;</description></item><item><title>Re: Edit Customer Field</title><link>http://forums.method.me/cs/forums/p/6920/25793.aspx#25793</link><pubDate>Thu, 12 Feb 2015 15:21:39 GMT</pubDate><guid isPermaLink="false">3393c1ec-311b-4812-96cb-ad8c611bba4f:25793</guid><dc:creator>Method_Alexander</dc:creator><description>&lt;p&gt;&lt;span style="overflow:hidden;"&gt;Hello,&lt;/span&gt;&lt;/p&gt;
&lt;div&gt;You need to use&amp;nbsp;MethodAPIUpdateV2 to set&amp;nbsp;IsLeadStatusOnly to false where the RecordID matches the lead you want to convert into a customer. Here&amp;rsquo;s some sample c# code that does this:&lt;/div&gt;
&lt;p&gt;&lt;span style="overflow:hidden;"&gt;&lt;/span&gt;&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;&lt;span style="font-family:Calibri, sans-serif;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; var MAPIsvc = new MethodAPIService.Service();&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="font-family:Calibri, sans-serif;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; string account = txtAccountName.Text;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="font-family:Calibri, sans-serif;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; string email = txtLoginEmail.Text;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="font-family:Calibri, sans-serif;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; string pwd = txtLoginPassword.Text;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="font-family:Calibri, sans-serif;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; string RecordID_To_Update = &amp;quot;446&amp;quot;;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="font-family:Calibri, sans-serif;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; string tablename = &amp;quot;Customer&amp;quot;;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="font-family:Calibri, sans-serif;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; string[ updatefields = &amp;quot;IsLeadStatusOnly&amp;quot;.Split(&amp;#39;,&amp;#39;);&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="font-family:Calibri, sans-serif;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; string[ updatevalues = &amp;quot;false&amp;quot;.Split(&amp;#39;,&amp;#39;);&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="font-family:Calibri, sans-serif;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; txtResponse.Text = MAPIsvc.MethodAPIUpdateV2(account, email, pwd, &amp;quot;&amp;quot;, tablename, updatefields, updatevalues,RecordID_To_Update);&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="font-family:Calibri, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;&lt;span id="mce_0_start" style="overflow:hidden;"&gt;&lt;/span&gt;&lt;/p&gt;</description></item></channel></rss>