Reports
Create, update, delete, and query information on reports made in SuiteCRM.
Table Specific Information
Select
You can query the Reports table using any criteria in the WHERE clause. The driver will use the SuiteCRM API to filter the results.
SELECT * FROM Reports WHERE [Report Module] = 'Projects'
Insert
Create a Report by specifying any writable column.
INSERT INTO Reports (Name, [Report Module], [Display Fields]) VALUES ('Incident Report', [Products], 'ID, Product Name, Damages')
Update
You can update any Report column that is writable, by specifying the Id.
UPDATE Reports SET Name = 'Updated Report' WHERE Id = 'Test123'
Delete
Remove a Report by specifying the Id.
DELETE FROM Reports WHERE Id = 10003
Columns
Name | Type | ReadOnly | Description |
ID [KEY] | String | False |
The unique identifier of the report. |
Assignedto | String | True |
The user name of the user assigned to the record. |
AssignedUserId | String | False |
The Id of the user assigned to the record. |
Chartsperrow | Int | False |
Number of charts to display for each row |
Conditions | String | True |
The complete conditions of the report |
CreatedById | String | True |
The Id of the user who created the record. |
CreatedByName | String | True |
The name of the user who created the record. |
DateCreated | Datetime | True |
The date the record was created. |
DateModified | Datetime | True |
The date the record was last modified. |
Deleted | Bool | False |
The record deletion indicator. |
Description | String | False |
Description for the report |
DisplayFields | String | True |
The report fields selected for the report |
ModifiedById | String | True |
The Id of the user who last modified the record. |
ModifiedByName | String | True |
The name of the user who last modified the record. |
Name | String | False |
Name assigned to the report |
ReportModule | String | False |
The module the report has targeted |
Pseudo-Columns
Pseudo column fields are used in the WHERE clause of SELECT statements and offer a more granular control over the tuples that are returned from the data source.
Name | Type | Description |
Rows@Next | String |
Identifier for the next page of results. Do not set this value manually. |