The Engines.SalesforceReports object gives developers access to the CSV reports in Salesforce.com. The report to be used as the Klip's content source must be available for the user's account under the Reports tab of Salesforce.com in a browser.
While both this object and the Engines.Salesforce 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.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
- 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
Since:
5.2.1
| Properties Summary | |
String |
lastError
|
String |
lastErrorCode
|
| Function Summary | |
String
|
getBaseAddress()
|
String
|
getErrorDetails()
|
String
|
getReport( ReportURL )
|
boolean
|
isLoggedIn()
|
function
|
login( <String> username, <String> password )
|
function
|
logout()
|
| Properties Detail |
lastError
String lastError
Since:
5.2.1
lastErrorCode
String lastErrorCode
Since:
5.2.1
| Function Detail |
getBaseAddress
String getBaseAddress()
Since:
5.2.1
-
Returns:
-
the base URL
getErrorDetails
String getErrorDetails()
Since:
5.2.1
-
Returns:
-
detailed error information
getReport
String getReport( ReportURL )
Time frame for the report can be appended to the URL using &quarter_q=duration. For example:
Engines.SalesforceReports.getReport (gReportURL+"&quarter_q=curfy")
Since:
5.2.1
-
Parameters:
reportURL - the URL from which to retrieve a CSV report
-
Returns:
-
a CSV report
isLoggedIn
boolean isLoggedIn()
Since:
5.2.1
-
Returns:
-
true if logged in; otherwise false
login
function login( <String> username, <String> password )
Since:
5.2.1
-
Parameters:
username - Login username
password - Login password associated with the specified username
-
Returns:
-
true on success; otherwise false
logout
function logout()
Since:
5.2.1
-
Returns:
-
true if logged out; otherwise false
|
Klipfolio Dashboard API | ||||||||
| PREV OBJECT NEXT OBJECT | FRAMES NO FRAMES | ||||||||
| SUMMARY: PROPERTY | FUNCTION | DETAIL: PROPERTY | FUNCTION | ||||||||
© 2011 Klipfolio Inc. All Rights Reserved.