Level up your Box knowledge with brand new learning paths on Box University. Visit training.box.com to get started

Get Collaboration Name and Email Address from .NET SDK

Answered
New post

Comments

1 comment

  • Peter Christensen

    Hi

    The object you get in the entries will be a 'BoxEntity' as it could be either a user or a group. It has a 'Type' property you can check and the cast accordingly.

    Something like this

    collaborators.Entries.ForEach(collaboration =>
    {
      if(collaboration.AccessibleBy.Type.Equals("user")) {
        Console.WriteLine(((BoxUser)collaboration.AccessibleBy).Name + "::" + ((BoxUser)collaboration.AccessibleBy).Login);
      }
    });

    Best regards, Peter Christensen, Platform Solutions Engineer, Box

    0
    Comment actions Permalink

Post is closed for comments.