Exporting a report as a PDF using the "new" RESTful API

John Mertic —  September 17, 2013 — 3 Comments

We saw yesterday that you could export a report as a PDF using Web Services. This is still possible in Sugar 6.7 and later with the newly introduced RESTful Web Services API, and much easier to boot! See the code example below…

John Mertic


John Mertic manages the strategic ISV alliances program for SugarCRM, having several years of techincal experience bringing solutions to market with several SugarCRM technology partners. A frequent conference speaker and an avid writer, he has been published in php|architect, IBM Developerworks, and in the Apple Developer Connection, and is the author of the book 'The Definitive Guide to SugarCRM: Better Business Applications' and the book 'Building on SugarCRM: Creating Applications the Easy Way'. He is also president of the OpenSocial foundation, guiding them in solving interoperability issues for enterprise application providers worldwide.

3 responses to Exporting a report as a PDF using the "new" RESTful API


    Is there a way to detect if the report contains any rows easily also?
    That would be really helpful… only send the email if it has something in the attachment.


    How would one do the same for a quote using a specific template? I’ve been trying without any success to get quotes through the “new” rest api and I want to avoid using the V4 but if there is a way to get it with a template on V4 that also would do the trick…

Trackbacks and Pingbacks:

  1. Exporting a report as a CSV using the “new” RESTful API « SugarCRM Developer Blog - November 7, 2013

    […] while back we touched on exporting a report as a PDF using the “new” RESTful API. One thing the reporting tool enables you to do is export ‘Rows and Columns’ reports as […]

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s