S
sonomaenterprises
I am trying to use a MAPITable on the default tasks folder with a restriction
on Contacts field. Everytiem I attempt to apply the restriction the table
throws a MAPI_E_INVALID_PARAMETER error. I assume this is due to the kind of
MNID_ID versuses MNID_STRING kind. What I am doing is:
PR_CONTACTS =
sItem.GetIDsFromNames("{00062008-0000-0000-C000-000000000046}", &H819B) Or
PT_STRING8 Or &H1000
Set Filter = table.Filter
Filter.Clear
Set Restr = Filter.SetKind(RES_CONTENT)
Restr.ulFuzzyLevel = FL_SUBSTRING Or FL_IGNORECASE
Restr.ulPropTag = PR_CONTACTS
Restr.lpProp = oContact.FullName
Filter.Restrict
Any suggestions on how to configure this to be able to restrict on the
contacts field of the tasks folder?
on Contacts field. Everytiem I attempt to apply the restriction the table
throws a MAPI_E_INVALID_PARAMETER error. I assume this is due to the kind of
MNID_ID versuses MNID_STRING kind. What I am doing is:
PR_CONTACTS =
sItem.GetIDsFromNames("{00062008-0000-0000-C000-000000000046}", &H819B) Or
PT_STRING8 Or &H1000
Set Filter = table.Filter
Filter.Clear
Set Restr = Filter.SetKind(RES_CONTENT)
Restr.ulFuzzyLevel = FL_SUBSTRING Or FL_IGNORECASE
Restr.ulPropTag = PR_CONTACTS
Restr.lpProp = oContact.FullName
Filter.Restrict
Any suggestions on how to configure this to be able to restrict on the
contacts field of the tasks folder?