set the external_id if it is a string