public class SFReportsEntity extends SFEntitiesBase
client| Constructor and Description |
|---|
SFReportsEntity(ISFApiClient client) |
| Modifier and Type | Method and Description |
|---|---|
ISFQuery<SFReport> |
create(SFReport report,
java.lang.Boolean runOnCreate)
Create Report
{
"Id": "rs24f83e-b147-437e-9f28-e7d03634af42"
"Title": "Usage Report",
"ReportType": "Activity",
"ObjectType": "Account",
"ObjectId": "a024f83e-b147-437e-9f28-e7d0ef634af42",
"DateOption": "Last30Days",
"SaveFormat": "Excel"
}
Creates a new Report.
|
ISFQuery |
delete(java.net.URI url)
Delete Report
Removes a report from the system
|
ISFQuery |
downloadData(java.lang.String id)
Get spreadsheet data
Get the spreadsheet data for a report
|
ISFQuery<SFODataFeed<SFReport>> |
get()
Get Reports for Current Account
Returns all the reports configured for the current account.
|
ISFQuery<SFReport> |
get(java.net.URI url)
Get Report by ID
Returns a single report specified by id.
|
ISFQuery |
getJsonData(java.lang.String id)
Get JSON Data
Get the JSON data for a report
|
ISFQuery<SFODataFeed<SFReport>> |
getRecent()
Get recent reports
Returns the most recent reports run for the current account.
|
ISFQuery<SFODataFeed<SFReport>> |
getRecent(java.lang.Integer maxReports)
Get recent reports
Returns the last 10 reports run for the current account.
|
ISFQuery<SFReportRecord> |
getRecord(java.lang.String id)
Get Report Record by ID
Returns a single record.
|
ISFQuery<SFODataFeed<SFReportRecord>> |
getRecords(java.net.URI url)
Get all Records by Report ID
Returns all records for a single report.
|
ISFQuery<SFODataFeed<SFReport>> |
getRecurring()
Get recurring reports
Returns all recurring reports for the current account.
|
ISFQuery<SFReportRecord> |
getRun(java.net.URI url)
Run Report
Run a report and get the run id.
|
ISFQuery |
move(java.net.URI reportUrl,
java.lang.String folderId)
Save a folder to a folder location
|
ISFQuery<SFItemProtocolLink> |
preview(java.net.URI reportUrl)
Get a preview location for the report
|
ISFQuery<SFReport> |
update(SFReport report)
Update Report
{
"Title": "Usage Report",
"ReportType": "Activity",
"ObjectType": "Account",
"ObjectId": "a024f83e-b147-437e-9f28-e7d03634af42",
"DateOption": "Last30Days",
"Frequency": "Once"
}
Updates an existing report
|
getEntitypublic SFReportsEntity(ISFApiClient client)
public ISFQuery<SFODataFeed<SFReport>> get()
public ISFQuery<SFReport> get(java.net.URI url) throws InvalidOrMissingParameterException
url - InvalidOrMissingParameterExceptionpublic ISFQuery<SFODataFeed<SFReport>> getRecent(java.lang.Integer maxReports) throws InvalidOrMissingParameterException
maxReports - (default: 10)InvalidOrMissingParameterExceptionpublic ISFQuery<SFODataFeed<SFReport>> getRecent()
public ISFQuery<SFODataFeed<SFReport>> getRecurring()
public ISFQuery<SFReportRecord> getRecord(java.lang.String id) throws InvalidOrMissingParameterException
id - InvalidOrMissingParameterExceptionpublic ISFQuery<SFODataFeed<SFReportRecord>> getRecords(java.net.URI url) throws InvalidOrMissingParameterException
url - InvalidOrMissingParameterExceptionpublic ISFQuery<SFReport> create(SFReport report, java.lang.Boolean runOnCreate) throws InvalidOrMissingParameterException
report - runOnCreate - InvalidOrMissingParameterExceptionpublic ISFQuery<SFReport> update(SFReport report) throws InvalidOrMissingParameterException
report - InvalidOrMissingParameterExceptionpublic ISFQuery delete(java.net.URI url) throws InvalidOrMissingParameterException
url - InvalidOrMissingParameterExceptionpublic ISFQuery<SFReportRecord> getRun(java.net.URI url) throws InvalidOrMissingParameterException
InvalidOrMissingParameterExceptionpublic ISFQuery<SFItemProtocolLink> preview(java.net.URI reportUrl) throws InvalidOrMissingParameterException
reportUrl - InvalidOrMissingParameterExceptionpublic ISFQuery getJsonData(java.lang.String id) throws InvalidOrMissingParameterException
InvalidOrMissingParameterExceptionpublic ISFQuery move(java.net.URI reportUrl, java.lang.String folderId) throws InvalidOrMissingParameterException
reportUrl - folderId - InvalidOrMissingParameterExceptionpublic ISFQuery downloadData(java.lang.String id) throws InvalidOrMissingParameterException
InvalidOrMissingParameterException