Skip to main content

Create Appointment Item Outlook 2019 and find by EntryID

  • August 27, 2021
  • 26 replies
  • 2 views

Show first post

26 replies

  • Rocketeer
  • September 14, 2021

Hello,

i want to create an appointment item in outook 2019 (365). After save this item has to be display.

After the display i need this item to work with it, but the instance ends after display.

I start a new outlook "session" to find the item with the EntryID but it end with an -155 error at the last line .... GETITEMFROMID.

Any Idea oder experience about this?

newinstance "OUTLOOK16_APPLICATION", hv_APPLICATION
hv_APPLICATION->CREATEITEM(hv_TASKITEM, 1)
hv_TASKITEM->SET_SUBJECT("TEST")
hv_TASKITEM->SAVE()
hv_TASKITEM->GET_ENTRYID(sv_ENTRYID)
hv_TASKITEM->DISPLAY("TRUE")

newinstance "OUTLOOK16_APPLICATION", hv_APPLICATION
hv_APPLICATION->GET_SESSION(hv_SESSION)
hv_SESSION->GETDEFAULTFOLDER(hv_DEFAULTFOLDER,9)
hv_DEFAULTFOLDER->GET_STOREID(sv_STOREID)
hv_SESSION->GETITEMFROMID(hv_TASKITEM,sv_ENTRYID,sv_STOREID)

THX a lot

I've put the updated sources of the SigWiz tool for Uniface 10.3 here (for the time being):

> https://file.ac/dj5BRQUdMXY/

The goal is to make this available on GitHub as well.