Results 1 to 4 of 4
  1. #1
    Star Lounger
    Join Date
    Feb 2001
    Location
    Auckland, North Island, New Zealand
    Posts
    73
    Thanks
    0
    Thanked 0 Times in 0 Posts

    TaskRequestItem - recipients unavailable (2000)

    I would like to be able to access the recipients of a Task Request Item but the object model does not seem to allow this.

    Here is the code I am using:

    Private Sub Application_ItemSend(ByVal Item As Object, Cancel As Boolean)
    Dim objItem As TaskRequestItem
    Set objItem = Item
    MsgBox objItem.Body '(works ok)
    ' (I would like to be able to access the recipients collection? here)
    End Sub

    This is to help a client who frequently sends tasks to multiple recipients.

    Thanks for any help

    Jim Brook.

  2. #2
    5 Star Lounger
    Join Date
    May 2001
    Location
    Washington, USA
    Posts
    750
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: TaskRequestItem - recipients unavailable (2000)

    The syntax kind of depends on what you want to do.

    ObjItem.Recipients refers to the collection. You can then use .Add or .Count etc. with this.

    On the recipient side you can't do anything until the task request has been processed. You can .Display the request or the user may have auto-process turned on. Once this is done you can use ObjItem.GetAssociatedTask to fetch that and work with its recipient collection.

    Helps?

  3. #3
    Star Lounger
    Join Date
    Feb 2001
    Location
    Auckland, North Island, New Zealand
    Posts
    73
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: TaskRequestItem - recipients unavailable (2000)

    Thanks for this suggestion.

    However the Recipients collection apparently available at this point. If I include the line
    MsgBox objItem.Recipients.Count
    the "Object doesnt' support this property or method" message is seen.

    The available properties include: Action, Applications, Attachment, BillingInformation, Body, Categories, Class etc...Printout, Save, SaveAs, Saved, Sensitivity.....

    What I want to do is the following:

    Extract the primary Receipient from the collection and put that into a user-defined field so that we can group tasks by the primary recipient.

    I know the user will lose report-back functionality but this doesn't matter so much he says.

    I'm experienced in Access VBA but pretty new to the Outlook side of things and realise I'm probably missing something here.

    Is the problem that I have chosen the wrong event. It was the only I could find. Is there another event which gives me access to what I need?

    Thanks and regards.

  4. #4
    Star Lounger
    Join Date
    Feb 2001
    Location
    Auckland, North Island, New Zealand
    Posts
    73
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: TaskRequestItem - recipients unavailable (2000)

    What I wanted was:

    item.GetAssociatedTask(True).Recipients.Count

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •