Documents
Create, update, delete, and query SuiteCRM documents
テーブル固有の情報
Select
WHERE 句で任意の条件を使用して、Documents テーブルをクエリできます。本製品 はSuiteCRM API を使用して結果をフィルタリングします。
SELECT * FROM Documents WHERE [Document Name] LIKE '%.txt'
Insert
書き込み可能なカラムを指定して、Document を作成します。
INSERT INTO Documents (Name, [Document Source URL]) VALUES ('New Document', 'http://fileorigin.com/testfile.txt')
Update
Id を指定して、書き込み可能なDocument カラムを更新できます。
UPDATE Documents SET [Status Id] = 'Expired' WHERE Id = 'Test123'
Delete
Id を指定して、Document を削除します。
DELETE FROM Documents WHERE Id = '10003'
Columns
| Name | Type | ReadOnly | Description |
| ID [KEY] | String | False |
The unique identifier for the record. |
| 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. |
| Category | String | False |
The Id for the category of the document. |
| Contractname | String | True |
The name of the document's contract |
| Contractstatus | String | True |
The document's contract status. |
| CreatedById | String | True |
The Id of the user who created the record. |
| CreatedByName | String | True |
The user 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 |
Record deletion indicator. |
| Description | String | False |
The full text of the note. |
| DocumentName | String | False |
The document name. |
| DocumentRevisionId | String | False |
The Id of the document revision. |
| DocumentSourceID | String | False |
The document Id from the Web service provider for the document. |
| DocumentSourceURL | String | False |
The document URL from the Web service provider for the document. |
| DocumentType | String | False |
The template type of the document. |
| ExpirationDate | Date | False |
The date the document expires. |
| FileName | String | True |
The file name of the document attachment. |
| IsaTemplate | Bool | False |
Whether the document is a template. |
| LastRevisionCreateDate | Date | True |
The date the last revision was created. |
| LastrevisionMIMEtype | String | True |
The MIME type of the last revision. |
| Lastestrevisionname | String | True |
The name of the latest revision. |
| LatestRevision | String | True |
The latest revision. |
| LatestRevisionId | String | True |
The Id of the latest revision. |
| Linkedid | String | True |
The Id of the linked record. |
| ModifiedById | String | True |
The Id of the user who last modified the record. |
| ModifiedByName | String | True |
The user name of the user who last modified the record. |
| Name | String | True |
The name of the document. |
| PublishDate | Date | False |
The date the document is active. |
| RelatedDocument | String | True |
The related document name. |
| RelatedDocumentID | String | False |
The Id of the related document. |
| RelatedDocumentRevision | String | True |
The related document version number. |
| RelatedDocumentRevisionID | String | False |
The Id of the related document revision. |
| Revision | String | True |
The revision number. |
| RevisionCreatedBy | String | True |
The name of the user who created the last revision. |
| Selectedrevisionfilename | String | True |
The filename of the selected revision. |
| Selectedrevisionid | String | True |
The Id of the selected revision. |
| Selectedrevisionname | String | True |
The name of the selected revision. |
| Source | String | False |
The document type (e.g., Google, box.net, or IBM SmartCloud). |
| Status | String | True |
The document status. |
| StatusId | String | False |
The Id of the document status. |
| SubCategory | String | False |
The Id of the subcategory of the document. |
Pseudo-Columns
SELECT ステートメントのWHERE 句では、疑似カラムフィールドを使用して、データソースから返されるタプルを詳細に制御することができます。
| Name | Type | Description |
| Rows@Next | String |
Identifier for the next page of results. Do not set this value manually. |