PublicAPI.Docflow.Document.AddQuestion ELMA API Documentation
Add a question to the document
 
 
Syntax

public void AddQuestion(
	Document document,
	User recipient,
	string description,
	IEnumerable<Attachment> attachments,
	bool showAll
)

Parameters

document
Type: Document
Document, the question will be added to. Object. Access path: PublicAPI.Docflow.Document
recipient
Type: User
Executor. Object. Access path: PublicAPI.Portal.Security.User
description
Type: System String
Question description
attachments
Type: System.Collections.Generic IEnumerable Attachment 
Attachments. Object. Access path: PublicAPI.Portal.Objects.Common.Attachment
showAll
Type: System Boolean
Show to everybody
Remarks

EQL-queries help
Examples

//load the document by ID 
var doc = PublicAPI.Docflow.Document.Load(3);
//load the user by ID 
var recipient = PublicAPI.Portal.Security.User.Load(3);
//find all the attachments with IDs 2 and 3 , using EQL search 
var attachmets = PublicAPI.Portal.Objects.Common.Attachment.Find(new Filter{Query = "Id in (2,3)"},null);

//ask the question
PublicAPI.Docflow.Document.AddQuestion(doc, recipient, description, attachments, showAll);
See Also