Community

Web API - Cannot add comment to newly created task using CreateTask command Answered

Hello everyone!

I am trying to add some comments for newly created tasks using Createtask command as follows:

 

   //get ids for batch and add comment for every task

   Document[] docs = this._service.GetDocuments(batchId);

   int[] docId = docs.Select(x => x.Id).ToArray();

  int taksId = this._service.CreateTask(this._sessionId, (int)ServiceEnums.ProcessingStages.Import, (int)ServiceEnums.TaskPriority.Normal, "test comment", this.GetUserId(), docId, true);

Everything seems to be alright except my task comment "test comment" does not get written to the database (it is always empty). 

How can i solve the issue?

 

Thank you in advance!

 

Was this article helpful?

0 out of 0 found this helpful

Comments

2 comments

  • Avatar
    Permanently deleted user

    By the way a fragment of the Task table looks as follows (Comment field is always empty):

    0
  • Avatar
    Permanently deleted user

    Hello,

    When the task is created this way, it is an import task for the image. After this task is completed, the next tasks are automatically created for other stages, and comments from the previous tasks are discarded.

    To store information about the processed package that will not be discarded during the workflow, we recommend to use the registration parameters.

    1

Please sign in to leave a comment.