How to download record summary pdf when a new entry is added?

How to download record summary pdf when a new entry is added?

Hello, I want to download the pdf of a record summary PDF when I make a new entry in the form

I have tried this

On Add / On success

openUrl("https://creatorexport.zoho.com/danielmndez2/recibos/record-pdf/Recibo_Report/<ID>/<contratista>/(Report Secret KEY)?<ID>=" + ID + "&<contratista>=" + Contratista,"New window");

The problem is that the resultant URL is the next one

https://creatorexport.zoho.com/danielmndez2/recibos/record-pdf/Recibo_Report/input.ID/input.Contratista/Report Secret KEY)?input.ID=3112670000000106103&input.Contratista=3112670000000078982

It doesn't get replaced, it is only added at the end

How can I get ir replaced?

Thanks!