src/Communibase/Connector.php
public function getId($entityType, array $selector = [])
    {
        $params = ['limit' => 1];
        $ids = (array)$this->getIds($entityType, $selector, $params);

        return array_shift($ids);
    }
public function getId($entityType, array $selector = [])
    {
        $params = ['limit' => 1];
        $ids = (array)$this->getIds($entityType, $selector, $params);

        return array_shift($ids);
    }
public function getId ( $ entityType , array $ selector = [ ] ) { $ params = [ 'limit' => 1 ] ; $ ids = ( array ) $ this -> getIds ( $ entityType , $ selector , $ params ) ; return array_shift ( $ ids ) ; }
Get the id of an entity based on a search

@param string $entityType i.e. Person
@param array $selector (optional) i.e. ['firstName' => 'Henk']

@return array resultData

@throws Exception
Get the id of an entity based on a search