Added "requestAccessToEntityType" before get data function is called