Creating calendar entries

Does anybody have some sample code (preferably C++) that shows how to create
an appointment in the calendar?
I am basically using the same code that I use to create email messages,
which executes OK but nothing shows up in
the calendar. Roughly, the code looks like this (with some lines removed
for clarity):
pIGWMsgFolder->get_Messages(&pDIGWMessages);
pDIGWMessages->QueryInterface(IID_IGWMessages, (LPVOID*)&pIGWMessages);
pIGWMessages->Add(vClass, vType, vVersion, &pDIGWMessage); // class set to
GW.MESSAGE.APPOINTMENT
pDIGWMessage->QueryInterface(IID_IGWMessage, (LPVOID*)&pIGWMessage);
pIGWMessage->QueryInterface(IID_IGWAppointment, (LPVOID*)&pIGWAppointment);
pIGWAppointment->put_StartDate(mDate); // mDate set to start date of
appointment
pIGWAppointment->put_OnCalendar(vFlag); // vFlag set to TRUE
pIGWMessage->get_Subject(&pDSubject);
pDSubject->QueryInterface(IID_IGWFormattedText, (LPVOID*)&pSubject);
pSubject->put_PlainText(bstrSubject); // this set to main title of
appointment
pDIGWMessage->Release();
pIGWMessage->Release();
pIGWMessages->Release();
The only thing different about this from my email creation code is not
calling AddExistingMessage, which didn't
seem to make sense here.

I found some sample code in the NDK (the "Appt" application) and have tried
to model that as
much as possible. The good news is that the compiled version of Appt.exe
will create an appointment
on my system. The bad news is, I still cannot get my code to work. The
Send() call produces the
result x8002009. Any idea what this means? I'm assuming some bad or
missing property, but I believe
I have done everything correctly. Type is being set to egwDraft.
Properties being set are
put_FromText, put_Place, put_StartDate, put_EndDate, put_Duration,
put_PlainText (subject) ,
put_PlainText (BodyText).
"Preston Stephenson" <[email protected]> wrote in message
news:[email protected]...
> By type, I meant the "vType" variable. It sounds like
> you were setting it as posted (which is fine). You have
> to have a StartDate and an EndDate (or Duration). I know
> the calendar item won't display without a StartDate. I
> don't know what it will do without and EndDate.
>
> Preston
>
>>>> On Wednesday, September 22, 2010 at 10:04 AM, Jeff
> McKay<[email protected]> wrote:
>> What do you mean by "type"?
>>
>> Trying to create a posted appointment. I don't want to send it, just
> create
>>
>> it in the user's calendar (for a migration
>> application).
>>
>> Would the missing end‑date (or any other critical properties) cause the
>
>> appointment to not appear on the calendar?
>>
>>
>> "Preston Stephenson" <[email protected]> wrote in message
>> news:[email protected]...
>>>A few things to try.
>>> What type are you using?
>>> Are you trying to create a personal / posted appointment?
>>> Are you trying to create a sent / received appointment?
>>> If you are trying to send the appointment, you will need
>>> to create a draft message then call the Send() method.
>>> You'll need to set an end time or duration.
>>>
>>> Preston
>>>
>>>>>> On Monday, September 20, 2010 at 4:55 PM, Jeff
>>> McKay<[email protected]>
>>> wrote:
>>>> Does anybody have some sample code (preferably C++) that shows how to
>>> create
>>>> an appointment in the calendar?
>>>> I am basically using the same code that I use to create email messages,
>>>> which executes OK but nothing shows up in
>>>> the calendar. Roughly, the code looks like this (with some lines
> removed
>>>
>>>> for clarity):
>>>>
>>>> pIGWMsgFolder‑>get_Messages(&pDIGWMessages);
>>>> pDIGWMessages‑>QueryInterface(IID_IGWMessages,
> (LPVOID*)&pIGWMessages);
>>>> pIGWMessages‑>Add(vClass, vType, vVersion, &pDIGWMessage); // class
> set
>>> to
>>>> GW.MESSAGE.APPOINTMENT
>>>> pDIGWMessage‑>QueryInterface(IID_IGWMessage, (LPVOID*)&pIGWMessage);
>>>> pIGWMessage‑>QueryInterface(IID_IGWAppointment,
>>> (LPVOID*)&pIGWAppointment);
>>>> pIGWAppointment‑>put_StartDate(mDate); // mDate set to start date of
>>>> appointment
>>>> pIGWAppointment‑>put_OnCalendar(vFlag); // vFlag set to TRUE
>>>> pIGWMessage‑>get_Subject(&pDSubject);
>>>> pDSubject‑>QueryInterface(IID_IGWFormattedText, (LPVOID*)&pSubject);
>>>> pSubject‑>put_PlainText(bstrSubject); // this set to main title of
>>>> appointment
>>>>
>>>> pDIGWMessage‑>Release();
>>>> pIGWMessage‑>Release();
>>>> pIGWMessages‑>Release();
>>>>
>>>> The only thing different about this from my email creation code is not
>>>> calling AddExistingMessage, which didn't
>>>> seem to make sense here.

Similar Messages

  • Outlook not Displaying all Sharepoint 2007 Shared Calendar entries

    Hello all, we have an issue that I've been working on for a while with no success.
    One Sharepoint List (Calendar) with approval workflow, connected to Outlook. Two users with the same privileges to the list. Both users see all "approved" items when viewing the list via IE. One user can see ALL (approved and pending) items via
    Outlook, the other only seems to be able to view SOME approved items (not all approved items) via Outlook.
    So, my questions:
    1. Any idea why outlook is displaying ALL items to User 1, when the list view in IE only shows approved items?
    2. Why can User 2 only view some of the approved items via outlook? Rather than all items like user 1? (At the very least you'd expect User 2 to at least see all approved items.
    Anyone seen this before?  I give up...

    I have seen a lot of weirdness with MOSS 2007 calendars syncing to Outlook, but as far as fixes, its normally not too bad. for this particular issue, you might just want to remove the calendars from their outlook and re-add them.
    However, normally the most common issue is that outlook will allow users to create calendar entries that are invalid in SP.  i.e. the SP calendar has a required field, but Outlook does not allow users to edit that field as its custom (or outlook lets
    you keep the title empty which also causes weirdness in syncs).
    I would look and see what columns are required on the list, then export the list to excel and look for any items which have empty required fields.  Either, update those items, or delete them from the calendar, then resync to Outlook and it should be
    good.
    There may be something different, but this is the most common thing I see on these issues, let me know if it helps or not. 
    Christopher Webb | Microsoft Certified Master: SharePoint 2010 | Microsoft Certified Solutions Master: SharePoint Charter | Microsoft Certified Trainer| http://christophermichaelwebb.com

  • Using Appointment Manager to create calendar items for course participation

    Is anyone using SAP's Appointment Manager in conjunction with LSO to create calendar entries in an external application (Lotus Notes) when people book participation in a training course?

    did you manage to solve this? we are looking for the same issue.

  • Symbian Series 40 better for calendar entries than...

    Hi there!
    I hope I write in the right forum
    As former user of a Nokia 6500 slide (S40 powered) I switched to a 5800 XM (S60 powered). I don't have Microsoft Office (so no Outlook). The only options to create calendar-entries for my phone are Nokia PC Suite (latest version) www.ovi.com and the phone itself.
    Neither of this solutions let me create WEEKLY events which re-occur every 2 weeks. The PC-Suite only has the options daylie, weekly, monthly, yearly... available - the odd thing is that with my S40 6500 slide there where much more options available which let me create this type of events. Perhaps the PC-Suite doesn't support the 5800 XM 100%?
    The Nokia OVI-Service (www.ovi.com) has a small bug (or feature - if so tell me the trick ), where you can choose a number on daylie, monthly and yearly base but NOT on weekly - if I choose "weekly" I only get options like Monday, Tuesday, etc. (why choosing a day when I did that before I created the event ).
    The phone-device itself does have very limited adjustment-options to create events in its calendar - you can create events on 14 day base but that's luck, because the event must be a "Besprechung" (no clue whats the phrase in englih - perhaps "meeting"?) and the only option which has sub-options like (2 x, 3 x..) is "weekly". So reoccuring events on 2 months base aren't possible for example.
    I know that the 5800 isn't meant to be a organizer but in it's current state the calendar is more or less useless (other than that of the 6500 slide).
    If someone knows how to workaround those things or thinks that I have a made a mistake somewhere please tell
    Message Edited by timoschmidt on 10-Feb-2009 06:24 PM
    Message Edited by timoschmidt on 10-Feb-2009 06:25 PM

    Yep, the build-in Calendar suffers from lack of some features. Anyway, you can use some third party apps to create Weekly reminders. For example, Handy Calendar will use the default calendar Database and allow weekly events.
    Ericsson T10i -> Nokia 7110 -> Siemens C45, C55, M55, M65 -> Nokia 6131, N73, N82 -> HTC Wildfire, Desire HD -> Nokia Lumia 800 -> HTC Desire X -> Lumia 820 -> Sony Xperia SP -> Lumia 925 + Sennheiser CX 500
    If I've helped, use the Kudos button to thank

  • Yahoo Calendars entries created on Yahoo do not sync on iphone after upgrad

    After upgrading to IOS4, any previous or new calendar entries that have been created on the web in Yahoo calendars do not appear on the iphone. However, if you create a new yahoo calendar entry on the iphone then it appears without any problem in yahoo calendars (and also is removed if you delete from the iphone).
    The calendar is turned on correctly in Mail, Contacts, Calendars for the Yahoo accounts I have and I have even deleted and re-created the accounts on the iphone to see if that makes a difference and it does not.
    Prior to the upgrade to iOS4, the yahoo calendars all worked fine.
    Any ideas

    To fix yahoo calendars then do the following:-
    To reset, go to Settings, Mail, Contacts, Calendar. In this menu, go to "Calendars" options which is near the bottom. In the Sync categories change the setting from "*All Events*" to "*Events 6 Months Back*". Go to the calendar app and it should now Sync all of your Yahoo calendars. Go back to settings and change Sync settings back to "All Events" and they should all still appear.
    Also, for each yahoo account, go into them and make sure that Calendars is set to on.

  • SharePoint 2013 Workflow Calendar Entry Create Time AM PM Conflict

    Windows 2012, SharePoint 2013 Enterprise.
    I have a change control form that basically creates a calendar entry once it's been approved. Works well, but discovered a bug with the calendar create portion when there are events that have the same time in AM\PM. 
    Use case:
    1. Create a change control item in the list with a planned start time of 2PM, I'll approve it, which then fires off a workflow and it will create an event in the change control calendar for 2PM, all good.
    2. Create another change control item in the list with a planned start time of 2AM this time, I'll approve it, which then fires off a workflow and it will create an event in the change control calendar for 2PM and not 2AM. ???
    Yes the original event entry created in the list shows planned start time of 2AM, but its being created in the calendar entry as 2PM. This only happens when the time is exact. For example if I had created the second entry at 3PM, it will create the calendar
    entry at 3PM. It only happens if there is an existing entry for the same time, then all subsequent entries for the same time will have the same AM\PM depending on the first entry.
    I can manually create an entry in the calendar and specify 2PM and it will take, so its something with the workflow that is causing it. The workflow is very simple all its doing is checking the item to see if the field says approved for the change request
    form if so, create calendar event and carry over the fields, planned start time, planned end time, title description, that's it. 
    James Chong MCITP | EA | EMA; MCSE | M+, S+ Security+, Project+, ITIL msexchangetips.blogspot.com

    Hi James,
    In my test per your description, I cannot reproduce the issue, however, I attached the screenshot of my test for your reference, let me know if there is misunderstanding.
    Please capture the screenshot of your workflow process design so I can try to reproduce or find out if there is action that may cause the issue.
    In addition, could you please try to locate workflow error message? If there is obvious error information, please refer to the Activate Workflow Manager Logs part in the article below:
    http://blogs.msdn.com/b/vincent_runge/archive/2014/01/07/troubleshooting-actions-for-sharepoint-2013-workflows.aspx
    Regards,
    Rebecca Tu
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

  • Click a date in an e-mail to create a calendar entry fails.

    I click a date in an e-mail to create a calendar entry. Up pops a replica of my calendar for that date.  The replica includes all the existing entries for that date. (So it is clearly accessing my iCloud calendar.)  I say OK to add this new entry.  The calendar replica goes away.  I go to my actual calendar - no entry for the new appointment.  I go back to the e-mail and select the date again and again the replica page appears with the new calender entry shown.  Why doesn't the new entry appear on my real calendar.
    MAC Lion ver. 10.7.3 -- iCloud enabled -- calendar works fine in every other aspect

    I was afraid it was just me. Maybe it was in the upgrade to firefox 3.6.8 as I think it worked one or two upgrades ago.

  • When I try to enter a new calendar entry I get the following message: "This calendar was created by mail, you can't add events to a mail calendar" what does it mean? I never had this message before.

    When I try to enter a new calendar entry I get the following message: "This calendar was created by mail, you can't add events to a mail calendar" what does it mean? I never had this message before.

    Check which calendar you are trying it put this event on, then put it on the correct one.

  • Duplicate calendar entries on iPhone, but not in iCal (NOT using mobile.me)

    Hi,
    I've had a problem for a while (since iOS 3) where I get duplicate events on the iPhone (3GS and 4). It seems to happen for events that have been edited/deleted - they are not edited on the phone, rather a duplicate is made. It seems as if what is supposed to happen is iTunes deletes the old one, then creates a new one, only the old one is not being deleted. This is very annoying, especially for recurring events that get edited several times!
    I have found several posts about duplicate contacts and calendar entries but they all seem to be pointing to a conflict with mobile.me which I do not use. This is a simple sync between iCal and iPhone using iTunes.
    Does anyone know what could be causing this?

    I used to have this issue on my original iPhone (the 2G from 2007). You have to reset your sync data. This should help you; http://support.apple.com/kb/TS1627?viewlocale=en_US BUT don't shoot the messenger on this as I did a quick Google search.

  • I recently updated to IOS6 and I cannot sync my calendar to icloud and all my notes are not appearing in cloud.  If I have a new calendar entry, it is on my phone, but not on icloud.   Need help making sure I don't lose any informaiton.

    I recenly updated to IOS6.  I have a couple issues after the process.
    1- I lost all my calendar entries after the date I upgraded to IOS6 (all before the date were there).  I created an icloud account to assure that I would not lose any going forward.  Now when I enter a calendar entry, it does not appear on my icloud account.  I can enter it in icloud and it will appear on my phone, but not the reverse. 
    2 - None of my notes transferred into icloud.  I tried to manually enter one on icloud, again so I wouldn't lose this information going forward, and it appears on my iphone twice.  I cannot figure out how to get the notes currently on my iphone into my icloud account.

    you need to do a backup of the old phone and then on your new phone restore from that backup
    look at the link for more detailed instructions  http://support.apple.com/kb/HT1414

  • Existing Calendar Entries not Syncing to iCloud

    I have an iPhone 5 running iOS 7 that has five calendars.  I attempted to sync it to my iCloud account today and it only syncs one of my calendars ("Work").  The other calendars ("School", "Home" etc), show up in iCloud in the Calendars sidebar, but none of the entries do.  If I create a new event on my phone in any of the calendars, they show up and sync perfectly to the iCloud and to my new MBA (running Mavericks).  Likewise, events I create on my MBA and iCloud show up fine on my phone.  So, why are these existing entries, for all but one of my existing calendars, not syncing?  Any ideas?
    I've tried toggling iCloud on and off on my MBA and my phone; signing in and out of iCloud; restarting both phone and MBA.... no luck.  My next step is the restore my iPhone, but I'd really rather not do that.  I hope someone can help!
    Kelli

    Randers4 wrote:
    I suggest you do the following:
    Go to your old MacBook that contains these calendars, open iCal, click on each of your calendars on the left-hand side of iCal and export a backup to your desktop.  To do this, open iCal, click on the calendars one at a time, go to File>Export>Export and save to your desktop.  Then email each of these backup files to yourself.
    Next, open the emails on your new MBA, double-click the attachments one at a time, and select the corresponding calendar on your MBA to import each calendar to.  This should import the calendar entries to your Mac and to iCloud.  When done, comfirm that the calendars on your Mac contain the events, and check icloud.com to confirm that they appear on your calendar there as well.  If they do, go to Settings>iCloud on your phone, turn Calendars to off, choose Delete from My iPhone at the prompted, then turn Calendars back on, and if prompted, choose Replace.  This will replace the calendars on your phone with the ones on icloud.com.
    Oh, I have a good feeling about this!  I will try it out and report back in the morning.  Thank you so much!

  • Is it possible to transfer the data from a SharePoint 2013 calendar entry to Outlook 2010 calendar entry?

    Hi,
    I've managed to Sync my SharePoint Calendar with my Outlook. At the moment it only transfers through the Title and Location of my calendar entry.
    Is it possible to transfer the description as per the SharePoint entry so it shows up in Outlook?
    Thanks

    Hi,
    According to your post, my understanding is that you not seen the description of the calendar item synced with the outlook.
    I had tested with the issue, the description could sync with outlook.
    I created some items in the calendar, clicked the “Connect to Outlook” control, the items synced with the outlook including the description of the items.
    Did the issue occur in other calendars? You can create a new calendar with some items, the check whether it works.
    You can also check the event log and ULS log to see if anything unexpected occurred.
    To check event log, click the Start button and type “Event Viewer”in the Search box. 
    For SharePoint 2013, by default, ULS log is at
    C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\15\LOGS
    You can check the ULS log by the methods here:
    http://blogs.msdn.com/b/opal/archive/2009/12/22/uls-viewer-for-sharepoint-2010-troubleshooting.aspx
    http://msdn.microsoft.com/en-us/library/gg193966(v=office.14).aspx
    Thanks & Regards,
    Jason
    Jason Guo
    TechNet Community Support

  • Since installing OS5 and iCloud, I can no longer edit calendar entries on iPhone 4.

    Yesterday I installed OS5 and iCloud on my iPad, MacBook Pro and iPhone 4. I am able to edit calendar entries (old or new) on both the iPad and MacBook Pro. PROBLEM: there is no longer the option to edit calendar entires on my iPhone 4. I have checked under list, day and month viewing options.
    Event details can be viewed but the button to edit is not appearing.
    Most (if not all) of my calendar entires were created on my iPhone 4.
    If I create a new calendar entry on the phone, I can edit it... but I think once there's a sync the edit option will again disappear. Waiting to confirm that.
    I saw a posting about a year ago indicating this had happened before and was due to some mismatched account information, but I've checked each of my products and they all seem to have the same iCloud email and password information.
    Is this a glitch or am I missing something? What do I need to change or adjust to be able to again edit calendar entries on my phone?
    Please help. It's my lifeline.

    If it happens again then try some basic steps like these:
    Reload web page(s) and bypass the cache to refresh possibly outdated or corrupted files.
    *Press and hold Shift and left-click the Reload button.
    *Press "Ctrl + F5" or press "Ctrl + Shift + R" (Windows,Linux)
    *Press "Command + Shift + R" (MAC)
    Clear the cache and the cookies from sites that cause problems.
    "Clear the Cache":
    *Firefox > Preferences > Advanced > Network > Cached Web Content: "Clear Now"
    "Remove Cookies" from sites causing problems:
    *Firefox > Preferences > Privacy > Cookies: "Show Cookies"
    Start Firefox in <u>[[Safe Mode|Safe Mode]]</u> to check if one of the extensions (Firefox/Tools > Add-ons > Extensions) or if hardware acceleration is causing the problem (switch to the DEFAULT theme: Firefox/Tools > Add-ons > Appearance).
    *Do NOT click the Reset button on the Safe mode start window or otherwise make changes.
    *https://support.mozilla.org/kb/Safe+Mode
    See also:
    *http://kb.mozillazine.org/Websites_look_wrong

  • Can not change or delete Calendar Entries in Wiki

    Hi all - thx for listening :-)
    Situation:
    Server OS X 10.6.8
    Group Wiki with Calendar running
    All users belong to the same group
    All users can log in via Safari or Firefox
    Wiki calendar running, worked fine over a long period
    Several "calendars" (I tend to call them categories; strange wording from Apple here…) were created
    Without changes to the system, single users suddenly could not make calendar entries or were able to create one and a second later when trying to change the same entry got the message: "You are not allowed to see this calendar"
    We were able to ignore this for some single users for a while but now…
    There are calendar entries, mostly repeated weekly dates, that can not be deleted or changed by any user. When we try to delete these, we do NOT get any "deleting from server"-status box, just a blank return to the wiki calender page.
    When we try to change the dates (e.g. set a new weekday, repeat-period, category (=calender) etc) , we DO get the "deleting from server"-status box, but the time-wheel keeps on rolling for hours without any impact
    What I tried out so far:
    • repair permissions
    • restart
    Web Server error log:
    [Thu Aug 23 15:19:13 2012] [error] [client 192.168.178.20] File does not exist: /Library/WebServer/Documents/collaboration-availability, referer: …
    Wiki Server error log: (line repeats over and over again:)
    2012-08-23 15:56:15+0200 [-] 127.0.0.1 - - [23/Aug/2012:13:56:15 +0000] "POST /RPC2 HTTP/1.0" 200 131 "-" "Twisted/XMLRPClib"
    Desperately seeking help… Much thanks in advance :-)

    Hi Fellows,
    I finally found a workaround!
    1. Locate /Library/CalendarServer/Documents/ and ADD local admin to permissions-list with R/W rights (I did not change the existing permissions to keep the calenderas working in the wiki
    2. Transfer permissions to all files in this folder
    3. locate the folder /Library/CalendarServer/Documents/calendars/__uids__/wi/ki
    4. locate the folder named after the wiki in which you want to change your calenders. Inside of it, you will find subfolders with several .ICS-files.
    5. Select one .ics-file and hit space to activate quicklook. quicklook will show you the name and dates of the calendar entry
    6. Find the desired calendar entry by moving up/down with the arrow keys and delete it - it will dissapear in the wiki after e browser refresh.
    Not really elegant but efficient if you are annoyed by looking at obsolete calendars. :-)
    Hope you all find this useful too - feedback welcome.
    Message was edited by: Hooohn; spelling corrections only

  • Synching multiple calendar entries and not displaying events properly

    At my work we have Exchange 2003 and all the latest patches / service packs. We setup to synch via SSL on the device. Plus we use Outlook 2003 and 2007 in our environment. Email comes over although delayed at times and contacts, but the calendar is giving us the most issue. Here are the two problems:
    1. Synching is not fully talking to Exchange. We create a new calendar entry so that Outlook and iPhone show the event. We then delete it in Outlook and when it synch's it goes back to Outlook. We have even seen multiple events doubling up and trippling up. Anyone else have this issue and know how to fix?
    2. The calendar view is missing many appointments that I think I found a fix for in the discussion boards, but wanted to mention the two main areas we're having trouble with.
    For people who use the phone in an enterprise environment, what do you feel is the best configuration to use / setup process you followed to have the least amount of issues for the iPhone and using it not trough iTunes but synching via cell network?

    Open up Font Book and select all the fonts and try a "validate fonts."  You have a duplicate or corrupted font on your system.

Maybe you are looking for

  • Hyperlinks not displaying in .chm

    All of a sudden, and with no discernable pattern of behavior, my .chm is not displaying some hyperlinks within the compiled help. These are all internal references; no files external to the help system are referenced. I've tried recompiling (locally)

  • Calculation Field in Query

    Hi, I am devloping a query report of the confirmation details of process order. In which the execution start/finish date & time are confirmed during the confirmation process. The report of the same can be derived from COOISPI under operations. But, I

  • Having trouble adding new collection in ibooks?

    Hi I am having trouble a adding a new collection in ibooks.  When I click on "+New Collection" it disappears and the keyboard does not pop up and then seems to freeze.  It was working fine yesterday and only encountered this problem this morning. Has

  • Flash Pro CS5.5 "Debugger Failed to Launch"

    I'm running Flash Pro CS5.5 on Win 7 Pro x64 with 8GB RAM.  My .fla is HUGE (it's a game I'm working on) ~750mb.  My exported .swfs are ~35mb. I can open my project and test the movie one or two times (usually once) before I am unable to test the mov

  • Clipped adjustment layers behave differently when blend clipped layers as a group is selected. Why?

    Let's say I have a clipped adjustment layer( Layer 1 ) that affects Layer 0 only.  Afterwards I  enter in Layer 0 advanced blending mode and lower fill to 50% or other value and check and uncheck " blend clipped layers as a group option ". It looks d