set resource with a particular id
execCommand processing