i have plugin outlook treeview.
i know when user drags email don't know how identify when user drags folder
after identify object dragged , if it's folder , made the steps of code below currentfolder , passing , publish emails of folder
outlook.application outlookapplication = globals.thisaddin.application; outlook.explorer outlookexplorer = (outlook.explorer)outlookapplication.activeexplorer(); outlook.selection selection = outlookexplorer.selection; outlook.folder folder = (outlook.folder)outlookexplorer.currentfolder; outlook.items items = folder.items; outlook.mailitem mail = null; (int = 1; <= items.count; i++) { if (items[i] outlook.mailitem) { mail = (outlook.mailitem)items[i]; // here have mails , plugin works publish 1 or more mails outlook.mailitems } } someone know how can fix problem ?
everyone, found ugly way solve problem , it's need .
in event args exists lot of properties 1 of these properties appears when dragged folder. code.
if (e.data.getdatapresent("uniformresourcelocator")) { // step it's true folder } else { // step it's others items mailitem, contactitem... } someday it's util someone.
regards !!!
Comments
Post a Comment