Add type and id of the context record