Customise API Logic
Introduction:
Customise API Logic supports C#. The code edit page is https://[domain]/[tenantId]/[appCode]/admin/customiseapi. Please refer to the CallCustomiseAPI in the Other section of the Web API document for the calling method of the Customise API written by the user.
Global Parameters
| Parameter | Type | Remarks |
|---|---|---|
| TenantId | string | Current TenantId |
| AppCode | string | Current AppCode |
| Env | string | The variables of current environment |
| AppAPIId | string | The API number defined in customise API |
| Parameter | Dictionary<string, object> |
Parameters of calling interface, which value can be modified. |
| DocData | DocumentDataWithAttachment | Create the object of document, including the file selected by the front-end and its information. It is not guaranteed to have a value. For the data structure, please refer to CreateDocumentWithAttachmentFromWeb . |
| User | CurrentUser | Information of the current logged-in user. Please pay attention to anonymous and external users. |
| FromPage | bool | To determine whether or not coming from Digital Maker, excluding the scheduler. Please pay attention to anonymous access. |
| Referer | string | The url of requested page. |
| Service | namespace | Can be called by Service.MethodName() |
| WebApiService | namespace | Can be called byWebApiService.MethodName() |
Returned Values
- Return string.