How to get the PDF file from Bitrix24 via Webhook in Make (Integromat) instead of just the file ID?

Description:

I’m trying to send a PDF file from Bitrix24 to Make using a webhook. In Bitrix24, the field contains a PDF file, but what I’m receiving in Make is just the ID of the file, not the actual file itself.

My current webhook configuration is as follows:

https://hook.us2.make.com/“example”?id_deal={{ID}}&contract={{Contract - File}}&proxy={{Proxy - File}}

However, when I test it, the data received in Make looks like this (example output):

Captura de Tela 2024-09-25 às 18.19.47

That means the {{Contract - File}} and {{Proxy - File}} fields are just returning the IDs of the files in Bitrix24 (in this case, “188862” and “188864”). What I need is to receive the actual PDF file or be able to access it directly through Make.

Question:

How can I configure the webhook or Make so that the actual PDF file content is received, or how can I use the returned file ID to download the file from Bitrix24 in Make?

Welcome to the Make community!

You might need to call the enablepublicurl endpoint to get the public URL.

For more information, see documentgenerator.document.enablepublicurl

@samliew

P.S.: Investing some effort into the Make Academy will save you lots of time and frustration using Make.