generic method to fetch salesforceObjects