Dynamic URL parameters for customer entities

Dynamic URL parameters for customer entities

Hi there,

on our customer details page we need a link redirecting to a specific URL that could look like

www.mydomain.com/customerId=XXX

where XXX should be automatically be replaced by the value of a custom field "Customer ID" that is set with different values for each customer entity.

Is it possible to achieve, that if Customer ID equals 123 the url is set to www.mydomain.com/customerId=123?

Thanks in advance!