Table CCS DMS Content Type
table 5306015 "CCS DMS Content Type"
Properties
Name |
Value |
Caption |
DMS Content Type |
DataClassification |
CustomerContent |
Fields
Document Library Code
field(1; "Document Library Code"; Code[20])
Properties
Name |
Value |
Caption |
Document Library Code |
DataClassification |
CustomerContent |
TableRelation |
"CCS DMS Document Library" |
Code
field(2; "Code"; Code[20])
Properties
Name |
Value |
Caption |
Code |
DataClassification |
CustomerContent |
NotBlank |
1 |
Name
field(3; "Name"; Text[50])
Properties
Name |
Value |
Caption |
Display Name |
DataClassification |
CustomerContent |
NotBlank |
1 |
Item Limit
field(10; "Item Limit"; Integer)
Properties
Name |
Value |
Caption |
Item Limit |
DataClassification |
CustomerContent |
Item Sorting Field
field(11; "Item Sorting Field"; Text[30])
Properties
Name |
Value |
Caption |
Field Name for Sorting of SharePoint Query |
DataClassification |
CustomerContent |
Item Sorting Descending
field(12; "Item Sorting Descending"; Boolean)
Properties
Name |
Value |
Caption |
Sorting of Field Name Descending |
DataClassification |
CustomerContent |
Duplicate Handling
field(55; "Duplicate Handling"; Enum "CCS DMS Duplicate Handling")
Properties
Name |
Value |
Caption |
Duplicate Handling |
DataClassification |
CustomerContent |
Version CheckIn Type
field(56; "Version CheckIn Type"; Enum "CCS DMS CheckIn Type")
Properties
Name |
Value |
Caption |
Version CheckIn Type |
DataClassification |
CustomerContent |
InitValue |
Major |
Module Code
field(70; "Module Code"; Code[20])
Properties
Name |
Value |
Caption |
LibrarySet Module |
DataClassification |
CustomerContent |
TableRelation |
"CCS DMS Library Module".Code |
field(130; "Metadata Dialog"; Boolean)
Properties
Name |
Value |
Caption |
Metadata Dialog |
DataClassification |
CustomerContent |
InitValue |
1 |
Document Box Visible
field(200; "Document Box Visible"; Boolean)
Properties
Name |
Value |
Caption |
Visible in Document Box |
DataClassification |
CustomerContent |
InitValue |
1 |
Expand Documents
field(201; "Expand Documents"; Boolean)
Properties
Name |
Value |
Caption |
Expand Documents |
DataClassification |
CustomerContent |
Document Open Enabled
field(210; "Document Open Enabled"; Boolean)
Properties
Name |
Value |
Caption |
Open Document |
DataClassification |
CustomerContent |
InitValue |
1 |
Document Upload Enabled
field(211; "Document Upload Enabled"; Boolean)
Properties
Name |
Value |
Caption |
Upload Document |
DataClassification |
CustomerContent |
InitValue |
1 |
Document Delete Enabled
field(212; "Document Delete Enabled"; Boolean)
Properties
Name |
Value |
Caption |
Delete Document |
DataClassification |
CustomerContent |
InitValue |
1 |
Document CheckInOut Enabled
field(213; "Document CheckInOut Enabled"; Boolean)
Properties
Name |
Value |
Caption |
Check In / Check Out Document |
DataClassification |
CustomerContent |
InitValue |
0 |
field(215; "Metadata Show Enabled"; Boolean)
Properties
Name |
Value |
Caption |
Show Metadata |
DataClassification |
CustomerContent |
InitValue |
1 |
field(216; "Metadata Edit Enabled"; Boolean)
Properties
Name |
Value |
Caption |
Edit Metadata |
DataClassification |
CustomerContent |
InitValue |
0 |
Document Download Enabled
field(217; "Document Download Enabled"; Boolean)
Properties
Name |
Value |
Caption |
Download Document |
DataClassification |
CustomerContent |
InitValue |
1 |
Show All Files Enabled
field(218; "Show All Files Enabled"; Boolean)
Properties
Name |
Value |
Caption |
Show All Files |
DataClassification |
CustomerContent |
InitValue |
0 |
Document Send Enabled
field(219; "Document Send Enabled"; Boolean)
Properties
Name |
Value |
Caption |
Email Document |
DataClassification |
CustomerContent |
InitValue |
1 |
Keys
Name |
Fields |
Properties |
Primary |
- "Document Library Code"
- "Code"
|
|
LibrarySet |
|
|
Methods
CreateFolder
public "CCS DMS Content Type" CreateFolder(Folders: Text): None
Creates all not existing folder(s).
A runtime error occurs on missing auth or wrong behavior.
Parameters
Name |
Type |
Description |
Folders |
Text |
The folders as text, can be separated by '/' characters. |
Return Value
None
DeleteFile
public "CCS DMS Content Type" DeleteFile(ListItem: JsonObject): None
Query SharePoint and deletes a file (json)
A runtime error occurs on missing auth or wrong behavior.
Parameters
Name |
Type |
Description |
ListItem |
JsonObject |
The list item metadata. |
Return Value
None
DownloadFile
public "CCS DMS Content Type" DownloadFile(ListItem: JsonObject; var TempBlob: Codeunit "Temp Blob"): None
Query SharePoint and download a file.
A runtime error occurs on missing auth or wrong behavior.
Parameters
Name |
Type |
Description |
ListItem |
JsonObject |
The list item metadata. |
TempBlob |
Codeunit "Temp Blob" |
The downloaded file stored in temp blob. |
Return Value
None
FileExists
public "CCS DMS Content Type" FileExists(FolderFileName: Text): Boolean
Query SharePoint and checks if file exists.
A runtime error occurs on missing auth or wrong behavior.
Parameters
Name |
Type |
Description |
FolderFileName |
Text |
The name and folder of the file (not the full server relative url!). |
Return Value
Boolean
Returns true, if the file exists, else false.
GetBearerToken
public "CCS DMS Content Type" GetBearerToken(): Text
Get bearer token by AL.
A runtime error occurs on missing auth or wrong behavior.
Return Value
Text
A valid bearer token.
GetFileFolder
public "CCS DMS Content Type" GetFileFolder(RecRelatedVariant: Variant): Text
Returns the folder for a file upload based on a record.
A runtime error occurs on missing auth or wrong behavior.
Parameters
Name |
Type |
Description |
RecRelatedVariant |
Variant |
The record as Record or RecordRef |
Return Value
Text
Returns the decoded folder structure.
GetGetListItemsUrl
public "CCS DMS Content Type" GetGetListItemsUrl(RecRef: RecordRef): Text
Returns the GetListItems url (incl parameters)
Parameters
Name |
Type |
Description |
RecRef |
RecordRef |
The record ref to sharepoint filter parameters. |
Return Value
Text
The full URL to be used as get list items.
GetListItemAsBackgroundTask
public "CCS DMS Content Type" GetListItemAsBackgroundTask(): Boolean
Returns if the content type must be queried as background task or javascript for get list items.
Return Value
Boolean
Returns true, if the background task must be used.
GetListItems
public "CCS DMS Content Type" GetListItems(QueryFilter: Text): JsonToken
Query SharePoint and get list items as response (json)
A runtime error occurs on missing auth or wrong behavior.
Parameters
Name |
Type |
Description |
QueryFilter |
Text |
The query filter for SharePoint request, to avoid RecRef serialization. |
Return Value
JsonToken
The web service response.
ToJson
public "CCS DMS Content Type" ToJson(): JsonObject
Converts the record and it's values into a json object.
Return Value
JsonObject
The json object.
public "CCS DMS Content Type" UpdateFileMetadata(ListItem: JsonObject; CheckIn: JsonObject): None
Query SharePoint and updates file metadata of an item (json)
A runtime error occurs on missing auth or wrong behavior.
Parameters
Name |
Type |
Description |
ListItem |
JsonObject |
The list item metadata. |
CheckIn |
JsonObject |
The check in parameters. |
Return Value
None
UploadFile
public "CCS DMS Content Type" UploadFile(var TempBlob: Codeunit "Temp Blob"; Folders: Text; FileName: Text; ListItem: JsonObject; CheckIn: JsonObject): None
Query SharePoint and uploads a file.
A runtime error occurs on missing auth or wrong behavior.
Parameters
Name |
Type |
Description |
TempBlob |
Codeunit "Temp Blob" |
The file stream in temp blob. |
Folders |
Text |
Only the folders beneath the library. |
FileName |
Text |
The name of the file. |
ListItem |
JsonObject |
The file metadata. |
CheckIn |
JsonObject |
The check in parameters. |
Return Value
None