Invoice_Id as placeholder

Invoice_Id as placeholder

Hi I am trying to create a URL on the invoice with the Invoice Id (not the Invoice Number) but when I use %InvoiceId% or ${invoice.invoice_id} the first doesn't return anything and the second is returned as is i.e. as text.

Any suggestions?