P
PS
Hi All
I have a question related to Outlook. I am accessing a MAPI folder
which contains meeting items. This is not the regular calender
standard folder but a different one which contains the same info. When
I access each item - i can get the PR_Entry_ID property for each item
in that folder.
Now I really want to use that value and open the item so that i can
then access other properties such as subject, start time, end time etc
since those are not availalbe in the regualr item.
I am open to using either Redemption to do so or also Outlook obejct
model whichever works better.
Following is the code i am currently doing:
RDOFolder folder =
rdoSession.Stores.DefaultStore.RootFolder.Folders.Item("AAA").Folders.Item("BBB");
foreach (object item in folder.Items)
{
object mapiObject = item.GetType().InvokeMember("MAPIOBJECT",
BindingFlags.Public | BindingFlags.GetField |
BindingFlags.GetProperty, null, item, new object[] { },
System.Globalization.CultureInfo.InvariantCulture);
}
iPrpID = 0x0FFF0102 //This contains the PR_Entry_ID Val;
header = rdoUtil.HrGetOneProp(mapiObject, iPrpID);
if (header != null)
row["PR_ENTRYID"] = rdoUtil.HrArrayToString(header);
So as you see from above - I get the PR_Entry_ID from above - then I
need to use this value and open the item to access some other
properties such as mentioned above.
Thanks
I have a question related to Outlook. I am accessing a MAPI folder
which contains meeting items. This is not the regular calender
standard folder but a different one which contains the same info. When
I access each item - i can get the PR_Entry_ID property for each item
in that folder.
Now I really want to use that value and open the item so that i can
then access other properties such as subject, start time, end time etc
since those are not availalbe in the regualr item.
I am open to using either Redemption to do so or also Outlook obejct
model whichever works better.
Following is the code i am currently doing:
RDOFolder folder =
rdoSession.Stores.DefaultStore.RootFolder.Folders.Item("AAA").Folders.Item("BBB");
foreach (object item in folder.Items)
{
object mapiObject = item.GetType().InvokeMember("MAPIOBJECT",
BindingFlags.Public | BindingFlags.GetField |
BindingFlags.GetProperty, null, item, new object[] { },
System.Globalization.CultureInfo.InvariantCulture);
}
iPrpID = 0x0FFF0102 //This contains the PR_Entry_ID Val;
header = rdoUtil.HrGetOneProp(mapiObject, iPrpID);
if (header != null)
row["PR_ENTRYID"] = rdoUtil.HrArrayToString(header);
So as you see from above - I get the PR_Entry_ID from above - then I
need to use this value and open the item to access some other
properties such as mentioned above.
Thanks