I'm trying to figure out if there is a way to have the File Source change dynamically when an agent checks in a different group.

We're planning on implementing Connection Gateway to sort machines at different sites. We'd like to be able to automatically change the file source to a local server each time an agent changes site. I know that this is normally done with templates (and we have it that way normally) and that you can set a procedure to run when an agent checks in but I don't believe it will run on agent changing groups nor do I see any options to change the file source (no variable anywhere).

Any ideas? This sounds like it would be an easy option to implement and does seem to make quite a bit of sense.