   # `accountIds` Array of account IDs  
   # `callback` Callback function (err, result)
   @getAccountNames: (accountIds, callback) ->
+    LoggrUtil.log "getAccountNames"
     soql = SFDC.getAccountNameQuery accountIds
     SFDC.query soql, callback
 

  # `accountId` Id of the account to find related contacts on  
  # `callback` Callback function (err, data)
  @getRelated: (relatedObject, accountId, callback) ->
    soql = "SELECT Id, Name FROM #{relatedObject}
            WHERE Account.Id = '#{accountId}' ORDER BY Name"


          Platform.hideStatusBarActivityIndicator()
      success: (data) ->
        callback null, data
      error: (err, textStatus, errorThrown) ->
        LoggrUtil.log "AJAX error #{JSON.stringify(err)}"

        # check if it was a retry with same previous error
        if err.status is failOnError
          if err.status is 0
            LoggrUtil.logConnectionError()
          else
            SFDC.showCustomError err, ->
              callback err, null
        # else if request just failed to connect to network, try again in @_MIN_WAIT_TIME
        else if err.status is 0
          LoggrUtil.log "Status 0. Retry in #{SFDC._MIN_WAIT_TIME}ms"
          setTimeout ->
            retryFn(0)()
          , SFDC._MIN_WAIT_TIME
        # else if request failed due to Unauthorized error, enqueue request for future
        else if err.status is 401
          if SFDC.allowRequestQueueing
            LoggrUtil.log "Session inactive. Adding the request to the queue!"
            # Add request to queue to be retried after authentication.
            SFDC.requestQueue.push retryFn(401)
          else # If request queueing is not supported then just callback with error
            callback err, null

          # If sessionAlive is marked as true, then mark ready status as false and initiate authentication
          if SFDC.sessionAlive
            SFDC.setReady false
            SFDC.authenticator?()
        else
          SFDC.showCustomError err, ->
            callback err, null
            
    # onlyOnce = true, if you want to retry this AJAX request only once no matter if it succeeds or fails.
    retryFn = (previousError) ->
