Having trouble automatically generating dynamic prepopulation URLs