Solved

Exchange Webservice EXWS: read the billing information from an appointment/calendar item

Posted on 2009-04-07
2
355 Views
Last Modified: 2012-05-06
We are using the WebService to create appointments and tasks for the Microsoft Exchange Server 2007.
We need to read the field "billinginformation" from calendar items.
To insert and read a task with this field is no problem. The insert of a new calendar item with the billinginformation is also no problem, but we can not find the right syntax to read the billing information from an existing calendar item.
Can everybody help us? We are using C#. We take PropertyID 34101  and propertyTag 0x8535
Thanks a lot!
0
Comment
Question by:cmt2008
2 Comments
 
LVL 23

Accepted Solution

by:
Stacy Spear earned 250 total points
Comment Utility
This worked for me. Of course it came from Outlook, but should be simular I would imagine.
using System;

using System.Collections.Generic;

using System.Linq;

using System.Text;

using Outlook = Microsoft.Office.Interop.Outlook;
 

namespace OutlookAppt

{

    class Program

    {

        static void Main(string[] args)

        {

            Outlook.Application app = new Microsoft.Office.Interop.Outlook.Application();

            Outlook._NameSpace nameSpace = app.GetNamespace("MAPI");

            nameSpace.Logon(null, null, false, false);

            Outlook.MAPIFolder calendar = nameSpace.GetDefaultFolder(Outlook.OlDefaultFolders.olFolderCalendar);

            foreach (Outlook.AppointmentItem appt in calendar.Items)

            {

                Console.WriteLine(appt.BillingInformation);

            }

        }

    }

}

Open in new window

0

Featured Post

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Suggested Solutions

Resolve Outlook connectivity issues after moving mailbox to new Exchange 2016 server
Disabling the Directory Sync Service Account in Office 365 will stop directory synchronization from working.
In this video we show how to create an Address List in Exchange 2013. We show this process by using the Exchange Admin Center. Log into Exchange Admin Center.: First we need to log into the Exchange Admin Center. Navigate to the Organization >> Ad…
The video tutorial explains the basics of the Exchange server Database Availability groups. The components of this video include: 1. Automatic Failover 2. Failover Clustering 3. Active Manager

763 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now