afm-binding: Allow use of appid instead of runid