CreateDocument

Interface Function

Create a document under the specified Entity.

Request Parameter
Parameter Required Type Remarks
entityCode true string Form alias, the identity of the form
data true Dictionary<string, string> Field dictionary of Doc
staffName true string Creator StaffName.
staffCode true string Creator StaffCode.
dataId false string GUID format (no connector). It can be generated by system if not passing this parameter.
Return Data Type

int

Note
  • If the dataId parameter value 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);
© Digital Maker Product Team all right reserved,powered by Gitbook该文件修订时间: 2022-08-16 10:55:23

results matching ""

    No results matching ""