AddCollaborationAsync failing with folder not found.

Answered
New post

Comments

2 comments

  • saurabh0109

    i am facing same issue with other APIs as well for adding tasks or comments to file.

    //for adding tasks
    var req = new BoxTaskCreateRequest()
                    {
                        DueAt =  Convert.ToDateTime(dueDate),
                        Message = message,
                        Item = new BoxRequestEntity()
                        {
                            Id = fileId,
                            Type = BoxType.file
                        }
                    };
    
                    bxtask = await boxAdminClient.TasksManager.CreateTaskAsync(req);
    
    //for adding comment
    var req = new BoxCommentRequest()
                    {
                        Message = message,
                        Item = new BoxRequestEntity()
                        {
                            Id = itemId,
                            Type = BoxType.file
                        }
                    };
    
                    bxcomment = await boxAdminClient.CommentsManager.AddCommentAsync(req);

    Can anyone please help solve this ?

    0
    Comment actions Permalink
  • saurabh0109

    solved. I was using the wrong boxClient object. 

    0
    Comment actions Permalink

Please sign in to leave a comment.