Pass attributeNames to getEntries(...)