<?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: Retrieving Invoice Copies (PDF) via REST API</title><link>http://forums.method.me/cs/forums/thread/21738.aspx</link><pubDate>Tue, 06 May 2014 08:14:11 GMT</pubDate><guid isPermaLink="false">3393c1ec-311b-4812-96cb-ad8c611bba4f:21738</guid><dc:creator>furrywombat</dc:creator><slash:comments>0</slash:comments><comments>http://forums.method.me/cs/forums/thread/21738.aspx</comments><wfw:commentRss>http://forums.method.me/cs/forums/commentrss.aspx?SectionID=15&amp;PostID=21738</wfw:commentRss><description>&lt;p&gt;&lt;span id="mce_0_start" style="overflow:hidden;"&gt;Paul,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span id="mce_0_start" style="overflow:hidden;"&gt;&lt;/span&gt;I hear what you&amp;#39;re saying, but I&amp;#39;m trying to look at this more creatively. I think there is a way to accomplish this with the current system by placing the files in the document library as invoices are generated from within Method then accessing the file externally by utilizing certain data made available in the document table by performing a SELECT lookup via the API&lt;span id="mce_3_start" style="overflow:hidden;"&gt; and piecing it all together. Then, deleting the document in Method once it has been downloaded&lt;/span&gt;. Am I wrong?&lt;span id="mce_2_start" style="overflow:hidden;"&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="overflow:hidden;"&gt;The reason we want to download the files to our own server is because we need full control over the customer experience, which must also be a fully white-label experience. Not to mention, the last thing we want to be made publicly available is who we are using for our CRM. This could potentially be a major security threat.&lt;span id="mce_4_start" style="overflow:hidden;"&gt; Security through obscurity, good sir.&lt;span id="mce_5_start" style="overflow:hidden;"&gt;&lt;span id="mce_6_start" style="overflow:hidden;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;</description></item><item><title>Re: Retrieving Invoice Copies (PDF) via REST API</title><link>http://forums.method.me/cs/forums/thread/21737.aspx</link><pubDate>Tue, 06 May 2014 00:51:05 GMT</pubDate><guid isPermaLink="false">3393c1ec-311b-4812-96cb-ad8c611bba4f:21737</guid><dc:creator>Method_Paul</dc:creator><slash:comments>0</slash:comments><comments>http://forums.method.me/cs/forums/thread/21737.aspx</comments><wfw:commentRss>http://forums.method.me/cs/forums/commentrss.aspx?SectionID=15&amp;PostID=21737</wfw:commentRss><description>&lt;p&gt;&lt;span id="mce_0_start" style="overflow:hidden;"&gt;Furrywombat -&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span id="mce_0_start" style="overflow:hidden;"&gt;&lt;/span&gt;The PDFs that are generated on the server are temporary files that get cleaned up within 48 hours. &amp;nbsp;&lt;/p&gt;
&lt;p&gt;What you really need for us to do is to create a new API call that allows you to generate a PDF on demand from the API, rather than just the UI within Method. &amp;nbsp;We don&amp;#39;t have that on the roadmap, but I can add it as a request for the future. &amp;nbsp;It would help if we have a good understanding of the use case - i.e. why do you need it outside of Method instead of viewing the PDFs within Method?&lt;/p&gt;
&lt;p&gt;Paul&lt;/p&gt;</description></item><item><title>Re: Retrieving Invoice Copies (PDF) via REST API</title><link>http://forums.method.me/cs/forums/thread/21735.aspx</link><pubDate>Mon, 05 May 2014 23:25:23 GMT</pubDate><guid isPermaLink="false">3393c1ec-311b-4812-96cb-ad8c611bba4f:21735</guid><dc:creator>furrywombat</dc:creator><slash:comments>0</slash:comments><comments>http://forums.method.me/cs/forums/thread/21735.aspx</comments><wfw:commentRss>http://forums.method.me/cs/forums/commentrss.aspx?SectionID=15&amp;PostID=21735</wfw:commentRss><description>&lt;p&gt;&lt;span id="mce_0_start" style="overflow:hidden;"&gt;David, I am&amp;nbsp;&lt;span id="mce_1_start" style="overflow:hidden;"&gt;reopening this thread due to new information as well as a significantly-improved knowledge of working with the API. I think I&amp;#39;ve figured out how we&amp;#39;re going to accomplish this, but need some direction... here are my thoughts...&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span id="mce_0_start" style="overflow:hidden;"&gt;&lt;span id="mce_1_start" style="overflow:hidden;"&gt;&lt;/span&gt;&lt;/span&gt;Whenever an invoice (or any relevant document) is generated, we add an action to place the PDF itself into the document library, creating a separate folder for each customer. Then, use the API (or whatever) to GET the file from Method and place it on our server. I&amp;#39;m thinking this may actually not even be an API transaction but a logical one based on folder structure? The document library items appear to be publicly available, without any sort of authentication, if one knows the URL of the file itself unless I am missing something.&lt;/p&gt;
&lt;p&gt;So... what I can&amp;#39;t figure out is HOW to place these documents in the document library and then how to retrieve (or store in a custom table?) the URLs of the documents for API retrieval, download, and deletion from Method once downloaded.&lt;/p&gt;
&lt;p&gt;Is any of this actually possible?&amp;nbsp;&lt;span id="mce_2_end"&gt;&lt;/span&gt;Where do I start?&lt;/p&gt;</description></item><item><title>Re: Retrieving Invoice Copies (PDF) via REST API</title><link>http://forums.method.me/cs/forums/thread/19475.aspx</link><pubDate>Fri, 18 Oct 2013 17:07:31 GMT</pubDate><guid isPermaLink="false">3393c1ec-311b-4812-96cb-ad8c611bba4f:19475</guid><dc:creator>furrywombat</dc:creator><slash:comments>0</slash:comments><comments>http://forums.method.me/cs/forums/thread/19475.aspx</comments><wfw:commentRss>http://forums.method.me/cs/forums/commentrss.aspx?SectionID=15&amp;PostID=19475</wfw:commentRss><description>&lt;p&gt;&lt;span id="mce_0_start" style="overflow:hidden;"&gt;Dave,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span id="mce_0_start" style="overflow:hidden;"&gt;&lt;/span&gt;Thank you for your answer. Will consider setting up the portal at some point down the line. For now, we&amp;#39;ll just continue sending invoices by email.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;</description></item><item><title>Re: Retrieving Invoice Copies (PDF) via REST API</title><link>http://forums.method.me/cs/forums/thread/19426.aspx</link><pubDate>Wed, 16 Oct 2013 21:52:14 GMT</pubDate><guid isPermaLink="false">3393c1ec-311b-4812-96cb-ad8c611bba4f:19426</guid><dc:creator>Method_David</dc:creator><slash:comments>0</slash:comments><comments>http://forums.method.me/cs/forums/thread/19426.aspx</comments><wfw:commentRss>http://forums.method.me/cs/forums/commentrss.aspx?SectionID=15&amp;PostID=19426</wfw:commentRss><description>&lt;p&gt;&lt;br /&gt;&lt;span style="overflow:hidden;" id="mce_0_start"&gt;Hi furrywombat,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="overflow:hidden;"&gt;Is this quickbooks report or a method&lt;span style="overflow:hidden;" id="mce_1_start"&gt; &lt;/span&gt;report?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="overflow:hidden;"&gt;Quickbooks reports you wipe the GeneratedDate and then invoke me of the sync methods (&lt;/span&gt;MethodAPIActionSendToDesktop, MethodAPIActionSendToDesktopV2) to generate the report....see &lt;a href="http://www.methodintegration.com/cs/forums/t/3009.aspx"&gt;http://www.methodintegration.com/cs/forums/t/3009.aspx&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Method reports get generated on demand....e.g. clicking a screen with a button that has the &amp;#39;Generate Report&amp;#39; action configured. You cannot generate them via the API.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;In either case you can create a portal that generates the report&lt;span style="overflow:hidden;" id="mce_3_start"&gt; when users go to the portal. see &lt;a href="http://www.methodintegration.com/cs/forums/t/3120.aspx"&gt;http://www.methodintegration.com/cs/forums/t/3120.aspx&lt;span style="overflow:hidden;" id="mce_4_start"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="overflow:hidden;"&gt;&lt;span style="overflow:hidden;"&gt;&lt;/span&gt;&lt;/span&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span style="overflow:hidden;"&gt;&lt;span style="overflow:hidden;"&gt;The&lt;span style="overflow:hidden;" id="mce_6_start"&gt;&lt;/span&gt;&lt;span style="overflow:hidden;" id="mce_7_start"&gt;n&lt;/span&gt; using one of the short url functions&lt;span style="overflow:hidden;"&gt;(&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;MethodAPIGetScreenURLV2,MethodAPIGetScreenURLV3.MethodAPIGetScreenURLV4), create a url that goes to that page for the specific recordid.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Dave&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:Consolas;font-size:small;"&gt;&lt;span style="font-family:Consolas;font-size:small;"&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;" id="mce_5_start"&gt;&lt;span style="font-family:Consolas;font-size:small;"&gt;&lt;span style="font-family:Consolas;font-size:small;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:Consolas;font-size:small;"&gt;&lt;span style="font-family:Consolas;font-size:small;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="overflow:hidden;"&gt;&lt;span style="font-family:Consolas;font-size:small;"&gt;&lt;span style="font-family:Consolas;font-size:small;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;</description></item><item><title>Retrieving Invoice Copies (PDF) via REST API</title><link>http://forums.method.me/cs/forums/thread/19403.aspx</link><pubDate>Tue, 15 Oct 2013 20:06:29 GMT</pubDate><guid isPermaLink="false">3393c1ec-311b-4812-96cb-ad8c611bba4f:19403</guid><dc:creator>furrywombat</dc:creator><slash:comments>0</slash:comments><comments>http://forums.method.me/cs/forums/thread/19403.aspx</comments><wfw:commentRss>http://forums.method.me/cs/forums/commentrss.aspx?SectionID=15&amp;PostID=19403</wfw:commentRss><description>&lt;p&gt;We&amp;#39;re working on setting u&lt;span id="mce_4_start" style="overflow:hidden;"&gt;&lt;/span&gt;p a customer account login area on our website where copies of final invoi&lt;span id="mce_13_start" style="overflow:hidden;"&gt;&lt;/span&gt;&lt;span id="mce_12_start" style="overflow:hidden;"&gt;&lt;/span&gt;ces may be downloaded directly. I&amp;#39;ve created&amp;nbsp;a REST API on the website side that allows us to update order status from (example) Processing to Complete, once an invoice is generated from a sales order... or &amp;quot;Partially Shipped&amp;quot; if all items are not invoiced.&amp;nbsp;&lt;span id="mce_25_start" style="overflow:hidden;"&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;What I would like to do as well, is offer ou&lt;span id="mce_18_start" style="overflow:hidden;"&gt;&lt;/span&gt;r users the ability to download a copy of an invoice directly&lt;span id="mce_14_start" style="overflow:hidden;"&gt;&lt;/span&gt; from our web admin area. I&amp;#39;&lt;span id="mce_6_start" style="overflow:hidden;"&gt;&lt;/span&gt;m thinking the&lt;span id="mce_22_start" style="overflow:hidden;"&gt;&lt;/span&gt; most secure method of doing this will be to make a custom PHP function on our end that interfaces with the Method API to deliver the file securely &amp;quot;on call&amp;quot;, rather than storing the invoices&lt;span id="mce_22_end" style="overflow:hidden;"&gt;&lt;/span&gt; on our server.&lt;span id="mce_7_start" style="overflow:hidden;"&gt;&lt;span id="mce_21_start" style="overflow:hidden;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Problem is, I have no idea how to do this. I can write the PHP but at a loss as to what functions wo&lt;span id="mce_19_start" style="overflow:hidden;"&gt;&lt;/span&gt;uld accomplish this... we can store the RecordID of the invoice itself in our web database and use it in making the call, but would like to know how we would go about this most intelligently as (to be honest) I&amp;#39;m completely new to working with the MethodAPI (though I have read all of the documentation).&lt;span id="mce_8_start" style="overflow:hidden;"&gt;&lt;span id="mce_9_start" style="overflow:hidden;"&gt;&lt;span id="mce_28_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;&lt;span style="overflow:hidden;"&gt;&lt;span style="overflow:hidden;"&gt;My second thought, if there is no API call to download a specific record with a specific print template as a PDF would be to generate the file &amp;amp; save it as an action result with the intention of sending the file to our web server somehow. Again, my problem is I have zero idea as to how this would be accomplished using the Method API as it interfaces with our API.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Thoughts? Ideas?&lt;span id="mce_3_start" style="overflow:hidden;"&gt;&lt;span id="mce_10_start" style="overflow:hidden;"&gt;&lt;span id="mce_15_start" style="overflow:hidden;"&gt;&lt;span id="mce_23_start" style="overflow:hidden;"&gt;&lt;span id="mce_26_start" style="overflow:hidden;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Best,&lt;span id="mce_0_start" style="overflow:hidden;"&gt;&lt;span id="mce_2_start" style="overflow:hidden;"&gt;&lt;span id="mce_16_start" style="overflow:hidden;"&gt;&lt;span id="mce_20_start" style="overflow:hidden;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;The Wombat&lt;span id="mce_5_start" style="overflow:hidden;"&gt;&lt;span id="mce_11_start" style="overflow:hidden;"&gt;&lt;span id="mce_24_start" style="overflow:hidden;"&gt;&lt;span id="mce_27_start" style="overflow:hidden;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;</description></item></channel></rss>