RecordFunctionsSaveDocument Method

Save document in repository.

Definition

Namespace: Scanjour.Workflow4.Base
Assembly: Scanjour.Workflow4.Base (in Scanjour.Workflow4.Base.dll) Version: 24.4.0.0 (24.4.0.0)
C#
public static Record SaveDocument(
	Uri oDataUri,
	string fileID,
	Record primaryRecord,
	Stream documentStream,
	string title,
	string documentExtension,
	IEnumerable<RecordContact> parties = null,
	string recordState = "ARK",
	string recordType = "DOK",
	string source = "",
	string recordGrp = "",
	SecurityContext securityContext = SecurityContext.User
)

Parameters

oDataUri  Uri
The oData uri.
fileID  String
ID of a file to store document on. Provide ID of file containing primary record if save under other document.
primaryRecord  Record
Document that will be parent for document being saved.
documentStream  Stream
Document content.
title  String
Name under which document will be saved.
documentExtension  String
Document extension.
parties  IEnumerableRecordContact  (Optional)
The record Contacts to add to the record.
recordState  String  (Optional)
Record state, default is ARK.
recordType  String  (Optional)
Record type, default is DOK.
source  String  (Optional)
Record source, default is empty.
recordGrp  String  (Optional)
Record group, default is empty.
securityContext  SecurityContext  (Optional)

[Missing <param name="securityContext"/> documentation for "M:Scanjour.Workflow4.Base.RecordFunctions.SaveDocument(System.Uri,System.String,Scanjour.Process.OData.Client.Proxy.Record,System.IO.Stream,System.String,System.String,System.Collections.Generic.IEnumerable{Scanjour.Process.OData.Client.Proxy.RecordContact},System.String,System.String,System.String,System.String,Scanjour.Workflow4.Base.SecurityContext)"]

Return Value

Record
Record being saved.

See Also