get categoryIds function - 0.1