REST API: Get Report/Process pdf as response

46 views
Skip to first unread message

Usama Ahmed

unread,
Nov 7, 2025, 7:07:11 AM (7 days ago) Nov 7
to iDempiere
Hi,
I am able to run Process via rest api, but i don't know how to get the pdf/html/csv file generated as a result in rest api response.
Maybe I am missing a subtle thing, if anyone can guide it'll be really helpful.

Regards.

Diego Ruiz

unread,
Nov 7, 2025, 7:26:43 AM (7 days ago) Nov 7
to iDempiere

Hi,

In the response, you get the reportFile property, which contains the Base64-encoded file data.

Depending on which language you’re using, you can access it like this:

.then(response => {
  if (!response.isError) {
    const report = {
      isError: false,
      fileBase64: response.reportFile,
      fileName: response.reportFileName
    };

    return report;
  }
});

Then you need to build the file from that base64 string.

Best regards,
Diego 

Carlos Antonio Ruiz Gomez

unread,
Nov 7, 2025, 7:31:13 AM (7 days ago) Nov 7
to idem...@googlegroups.com
Check here:
https://bxservice.github.io/idempiere-rest-docs/docs/api-guides/processes#returns-2

->    reportFile: base64 encoded content
> Regards.  --

Heng Sin Low

unread,
Nov 7, 2025, 7:39:26 AM (7 days ago) Nov 7
to idem...@googlegroups.com

--
You received this message because you are subscribed to the Google Groups "iDempiere" group.
To unsubscribe from this group and stop receiving emails from it, send an email to idempiere+...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/idempiere/0dde4532-52a4-49a9-8141-cbfe086bf209n%40googlegroups.com.

Usama Ahmed

unread,
Nov 12, 2025, 1:22:35 AM (yesterday) Nov 12
to iDempiere
Thanks everyone, really appreciated.
Reply all
Reply to author
Forward
0 new messages