K
Kristy
Hi
I use HrSetOneProp/HrGetOneProp to store custom properties on some
MailItems. One of these is used to decide whether the item has to be
printed when added to another folder (usually a public folder).
Eg, if certain criteria is met then...
Set utils = CreateObject("Redemption.MAPIUtils")
PrCustomTag = utils.GetIDsFromNames(objItem.MAPIOBJECT,gsGUID,
"Print",True)
PrCustomTag = PrCustomTag + &H1E
utils.HrSetOneProp objItem.MAPIOBJECT, PrCustomTag, "Yes", True
Then when I use...
CustomField = utils.HrGetOneProp(objItem.MAPIOBJECT, PrCustomTag)
it will return "Yes" and I print the item.
I would also like to be able to change the same property to "No", so I
tried to overwrite it by using...
PrCustomTag = utils.GetIDsFromNames(objItem.MAPIOBJECT,gsGUID,
"Print",True)
PrCustomTag = PrCustomTag + &H1E
utils.HrSetOneProp objItem.MAPIOBJECT, PrCustomTag, "No", True
But it didn't work, it sill returned "Yes" :-(
What am I doing wrong?
Thanks
Kris
I use HrSetOneProp/HrGetOneProp to store custom properties on some
MailItems. One of these is used to decide whether the item has to be
printed when added to another folder (usually a public folder).
Eg, if certain criteria is met then...
Set utils = CreateObject("Redemption.MAPIUtils")
PrCustomTag = utils.GetIDsFromNames(objItem.MAPIOBJECT,gsGUID,
"Print",True)
PrCustomTag = PrCustomTag + &H1E
utils.HrSetOneProp objItem.MAPIOBJECT, PrCustomTag, "Yes", True
Then when I use...
CustomField = utils.HrGetOneProp(objItem.MAPIOBJECT, PrCustomTag)
it will return "Yes" and I print the item.
I would also like to be able to change the same property to "No", so I
tried to overwrite it by using...
PrCustomTag = utils.GetIDsFromNames(objItem.MAPIOBJECT,gsGUID,
"Print",True)
PrCustomTag = PrCustomTag + &H1E
utils.HrSetOneProp objItem.MAPIOBJECT, PrCustomTag, "No", True
But it didn't work, it sill returned "Yes" :-(
What am I doing wrong?
Thanks
Kris