service: use id in get by name function