CreateDocument
Interface Function
Create a document under the specified Form.
Request Parameter
Parameter | Required | Type | Remarks |
---|---|---|---|
data | true | Dictionary<string, string> |
Field dictionary of Doc |
dataId | false | string | GUID format (no connector). Generated by system if this parameter is not passed. |
formAlias | false | string | Form alias, the identity of the form |
Return Data Type
int
Note
- When the parameter value of dataId is an existing document, the update operation is performed.
Code example
//
var entityCode="demoformalias";
//textbx_address, textbx_name is field name
var staffName="DemoUser";
var staffCode="##200217042712778";
var data=new Dictionary<string, string> { {"textbx_address","World"},{"textbx_name","DemoUser"}};
var dataId = Guid.NewGuid().ToString();
var result=Service.CreateDocument(entityCode,data,staffName,staffCode,dataId);
Service.ConsoleLog("CreateDocument result",result);