CreateDocumentWithAttachment
≥4.8.5.200415.0
Interface Function
Upload attachments and create Doc, the workflow can be executed at the same time by assigning values to the ActionCode parameter.
Request Parameter
DocumentDataWithAttachment
说明
This parameter comes from the caller (only the request initiated by the Form can be generated, and the specific usage can be referred to
CallAppAPI-ForWeb
), and it can be obtained through theDocData
attribute in the context.This interface can only be called when the Customised Security API is called through the
CallAppAPI-For Web
method, because only this calling method can transfer file information.
Return Data Type
When the operation fails, the data type is string, 1 means success, and other values fail.
The data structure is returned when all operations are completed:
Parameter | Type | Remarks |
---|---|---|
entityName | string | The name of the entity to which the document belongs |
dataId | string | document ID |
result | string | Operation result |
msg | string | Operation result description |
Code example
//DocData is an object in the context and can be used directly
var createRes=Service.CreateDocumentWithAttachment(DocData);
Service.ConsoleLog("createRes",createRes);
Return example
{
"StatusCode": 200,
"Info": "Request (or process) succeeded",
"Data": {
"entityName": "BulkUploadLog",
"dataId": "94635f2b5ae24fa28d6ca3ab5c96f8c9",
"result": 1,
"msg": "Process successed"
}
}