Klipfolio Dashboard API

Object Engines.Salesforce

Object
   |
   +--Klip
         |
         +--Engines
               |
               +--Engines.Salesforce

Advanced Feature This object is an advanced feature that is only available in the licensed, commercial version of Klipfolio Dashboard. Contact Klipfolio for further details.

The Engines.Salesforce object gives developers access to a built-in Salesforce API.

While both this object and the Engines.SalesforceReports object provide you with methods to access data from Salesforce.com, note the following differences when considering which engine to use for your Salesforce Klip:

Engines.Salesforce
  • Klipfolio Dashboard must have the Salesforce extension included in the application
  • Uses the Force.com API offered by Salesforce to access the data
  • Can be (but does not need to be) used in conjunction with the Engines.SalesforceLogin object to set up the login UI
  • Can send queries to the Salesforce.com database that are supported by the Force.com API
  • Useful when you want to include advanced functionality in your Salesforce Klip, such as the ability to change the status of a record
Engines.SalesforceReports
  • Does not require the Salesforce extension in Klipfolio Dashboard; therefore, Klips using this object can be added to any Klipfolio Dashboard build after version 5.2.1
  • Accesses the CSV reports under the Reports tab in Salesforce.com and does not use the API offered by Salesforce.com
  • The Login UI, if required, must be written using the available Klipfolio Dashboard APIs
  • Cannot send queries to the Salesforce.com database; therefore, reports must already be available under the Reports tab
  • Useful when you simply want to retrieve and display data from any of the available CSV reports under the user's accounts

Since:
5.2.1

Also see:
Force.com Web Services API Developer's Guide for requirements, limitations and restrictions of the Salesforce API, and for parameter values used in Klipfolio Dashboard's Salesforce Engine.


Properties Summary
 String lastError
          Advanced Feature Information about the most recent error in the Salesforce Engine.
 String lastErrorCode
          Advanced Feature The latest error code that was returned by Salesforce.
 String lastErrorDetail
          Advanced Feature Detailed information about the latest error that is returned by Salesforce.
 String lastErrorURL
          Advanced Feature The URL for the latest error.
   
Function Summary
 boolean deleteItem( <String> id )
           Advanced Feature Deletes the specified item.
 array getActiveUsers( <String> field )
           Advanced Feature Gets an array of all values for one field from the User database where the user is active.
 String getBaseAddress()
           Advanced Feature Gets the base URL for Salesforce.com.
 String getErrorDetails()
           Advanced Feature Gets detailed information about the latest error and displays lastError, lastErrorCode and lastErrorDetail with labels in the Debug Window.
 String getItemURL( <String> itemID )
           Advanced Feature Gets the URL for an item of the specified ID.
 array getList( <String> field, <String> type )
           Advanced Feature Gets a list of values from the specified field for the specified type of data.
 String getUserID( <String> username )
           Advanced Feature Gets a 15-character user ID from the specified username or full name.
 boolean isLoggedIn()
           Advanced Feature Checks whether the user is currently logged in.
 boolean login( <String> username, <String> password )
           Advanced Feature Logs into the Salesforce Force.com API using the specified user name and password.
 boolean logout()
           Advanced Feature Logs out of the Salesforce Force.com API.
 String query( <array> fields, <String> database[, <String> filterName, <array> filterValues][, <String> user][, <String> daterange] )
           Advanced Feature Returns the XML query result from the Salesforce Force.com API that includes all of the specified fields in the database.
 String querySQL( <String> query )
           Advanced Feature Sends an SQL query to the Salesforce Force.com API.
 function setAccountType( <String> accountType )
           Advanced Feature Sets the account to the specified type which can be "Enterprise" or "Partner", or 0 and 1, respectively.
 boolean updateField( <String> type, <String> id, <String> field, <String> value )
           Advanced Feature Updates the value of the specified field with the new value.

Properties Detail

lastError

String lastError

lastErrorCode

String lastErrorCode

lastErrorDetail

String lastErrorDetail

lastErrorURL

String lastErrorURL

Function Detail

deleteItem

boolean deleteItem( <String> id )

getActiveUsers

array getActiveUsers( <String> field )

getBaseAddress

String getBaseAddress()

getErrorDetails

String getErrorDetails()

getItemURL

String getItemURL( <String> itemID )

getList

array getList( <String> field, <String> type )

getUserID

String getUserID( <String> username )

isLoggedIn

boolean isLoggedIn()

login

boolean login( <String> username, <String> password )

logout

boolean logout()

query

String query( <array> fields, <String> database[, <String> filterName, <array> filterValues][, <String> user][, <String> daterange] )

querySQL

String querySQL( <String> query )

setAccountType

function setAccountType( <String> accountType )

updateField

boolean updateField( <String> type, <String> id, <String> field, <String> value )

Klipfolio Dashboard API

© 2011 Klipfolio Inc. All Rights Reserved.