Copying Items

Add-in Express™ Support Service
That's what is more important than anything else

Copying Items
 
Andrew Lockwood


Guest


This follows on from a previous question I asked about the BeforeItemPaste event.

If I copy an appointment item from my calendar to another day, the ClipboardContent parameter in the BeforeItemPaste event appears to be the original object, not a copy of it.

What I really want to do is to change a UserProperty on the copied item, whilst retaining it on the original one.

If I modify the UserProperty of the ClipboardContent parameter, it changes the UserProperty for both the original and the copied item.

Is there any way to achieve what I am trying to do? How can I access the copied item?

Thanks,


Andrew
Posted 22 Oct, 2015 09:19:39 Top
Andrei Smolin


Add-in Express team


Posts: 18821
Joined: 2006-05-11
Andrew,

Please check https://www.add-in-express.com/forum/read.php?FID=1&TID=3152&MID=14968#message14968. In the same fashion you can handle the OnItemAdd event of the Items collection.


Andrei Smolin
Add-in Express Team Leader
Posted 22 Oct, 2015 10:25:46 Top
Andrew Lockwood


Guest


Thanks. That did the trick!
Posted 02 Nov, 2015 10:23:33 Top
Andrei Smolin


Add-in Express team


Posts: 18821
Joined: 2006-05-11
Welcome!


Andrei Smolin
Add-in Express Team Leader
Posted 03 Nov, 2015 04:57:08 Top