- Home [object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
- Getting started
- Use cases
-
API
-
Object types
- DispositionType
- ProcessInstanceState
- ProcessTaskState
- ApplicationItemRegistration
- ApplicationProjectItem
- ApplicationProjectItemRef
- ApplicationProjectPlanElementItem
- ApplicationProjectPlanElementItemRef
- BaseApplicationItem
- BaseApplicationItemRef
- BaseItem
- BaseItemData
- CurrentUserItem
- DirectoryData
- DirectoryItem
- EmployeeItemData
- EmployeeItemParams
- EmployeeItemProcesses
- FileData
- FileItem
- FileItemRef
- FileVersionData
- FileVersionItem
- ImageData
- ImageItem
- ImageItemRef
- InstanceAddr
- Item
- ItemData
- ItemRef
- MailMessageData
- MailMessageItem
- MailMessageItemRef
- OrganisationStructureData
- OrganisationStructureItem
- OrganisationStructureItemRef
- ParamsItem
- ProcessInstanceData
- ProcessInstanceItem
- ProcessInstanceItemRef
- ProcessTaskData
- ProcessTaskItem
- ProcessTaskItemRef
- ProcessTemplate
- ProcessTimer
- ReminderData
- ReminderItem
- ReplacementData
- ReplacementItem
- StatusHistoryData
- StatusHistoryItem
- StatusHistoryItemRef
- TaskItemExit
- UserData
- UserGroupData
- UserGroupItem
- UserGroupItemRef
- UserItem
- UserItemRef
- ApplicationItem
- ApplicationItemRef
- Data types
- Global constants
- Work with apps
- Web requests
- Access permissions
- Document flow
- Live Chats
- “Code” widget
- Signatures
- Business calendars
- Integration with IP telephony
- Integration with email marketing services
-
Object types
Reference object to a project plan element
Reference objects are usually used in App type properties in order to avoid loading all the associated data. To read the entire app item data, call method ApplicationProjectPlanElementItemRef.fetch , and to get the entire item object, call ApplicationProjectPlanElementItem.
const my_app_full = await Context.data.my_app.fetch();
Type parameters
Data: ProjectPlanElementItemData | ItemData
Params: ItemData
TProcesses: Processes
I: Item<ItemData>
Hierarchy
Properties
Readonly code
App code of the URL’s target (the app’s code).
Readonly id
ID of the URL’s target.
Readonly namespace
Namespace of the URL target (the code of the workspace that the app belongs to).
Methods
delete
The method allows you to delete an app item.
await Context.data.app.delete();
Returns Promise<void>
docflow
This method returns an object to work with document management operations.
const item = await Context.data.n1; const approvalLists = await item.docflow().getApprovalLists();
Returns DocflowApplicationItemRef
fetch
Request complete data of a reference object.
Returns Promise<BaseApplicationItem<Data, Params>>
getFolder
The method returns the folder from the folder tree that an item is in.
const item = await Context.data.n1; const folder = await item. getFolder();
Returns Promise<TFolder | undefined>
getRegistrations
Deprecated
Deprecated. Get a list of registrations of an app item.
const item = Context.data.d1! await item.getRegistrations();
As the method is deprecated, use docflow instead:
const item = Context.data.d1! await item.docflow().getRegistrations();
Returns Promise<ApplicationItemRegistration[]>
getSettings
The method returns an app’s settings.
const app = Context.data.dokument; if (app === undefined) { return; } const settings = await app.getSettings();
Returns Promise<TSettings>
manualRegister
Deprecated
Deprecated. Manual registration of an app item (if manual registration is enabled in the folder’s settings).
As the method is deprecated, use docflow instead:
const item = Context.data.d1! const settings = await Application.getSettings(); settings .registrationSettings.nomenclatureIds.forEach(nomenclatureId => { item. docflow().manualRegister('Number 1', nomenclatureId); })
Parameters
nameReg: string
nomenclatureId: string
Returns Promise<boolean>
register Deprecated
Deprecated. Automatic app item registration.
As the method is deprecated, use docflow instead:
const item = Context.data.d1! const settings = await Application.getSettings(); settings.registrationSettings.nomenclatureIds.forEach(nomenclatureId => { item.docflow().register(nomenclatureId); })
Parameters
nomenclatureId: string
Returns Promise<boolean>
restore
The method allows you to restore a deleted app item.
await Context.data.app.restore();
Returns Promise<void>
sendMessage
The method allows sending messages to an app item’s activity stream.
Parameters
title: string
message: string
Returns Promise<void>
setFolder
The allows you to change the app item’s folder in the Folder hierarchy.
Parameters
id: string
Returns Promise<void>
Properties
Methods