ActivityFunctionsSaveDocument Method

Scanjour Workflow4 Reference Manual
Save document in repository.

Namespace:  Scanjour.Workflow4.ActivityLibrary
Assembly:  Scanjour.Workflow4.ActivityLibrary_19.1.6.0 (in Scanjour.Workflow4.ActivityLibrary_19.1.6.0.dll) Version: 19.1.6.0 (19.1.6.0)
Syntax

public static Record SaveDocument(
	ActivityContext context,
	string fileID,
	Record primaryRecord,
	Stream documentStream,
	string title,
	string documentExtension,
	IEnumerable<RecordContact> parties = null,
	string recordState = "ARK",
	string recordType = "DOK",
	string source = "",
	string recordGrp = ""
)

Parameters

context
Type: System.ActivitiesActivityContext
The activity context.
fileID
Type: SystemString
ID of a file to store document on. Provide ID of file containing primary record if save under other document.
primaryRecord
Type: Record
Document that will be parent for document being saved.
documentStream
Type: System.IOStream
Document content.
title
Type: SystemString
Name under which document will be saved.
documentExtension
Type: SystemString
Document extension.
parties (Optional)
Type: System.Collections.GenericIEnumerableRecordContact
The record Contacts to add to the record.
recordState (Optional)
Type: SystemString
Record state, default is ARK.
recordType (Optional)
Type: SystemString
Record type, default is DOK.
source (Optional)
Type: SystemString
Record source, default is empty.
recordGrp (Optional)
Type: SystemString
Record group, default is empty.

Return Value

Type: Record
Record being saved.
See Also

Reference