How to get the folder level by right click ?

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

How to get the folder level by right click ?
MAPIFolder level  
alvin chan




Posts: 34
Joined: 2019-10-07
Hi support,

Please advise how can I get the folder level by the context ?

[img]https://drive.google.com/file/d/1gy96axB6yK_MMxnyfAZ7ohC1arRmGYLh/view?usp=sharing[/img]
Posted 25 Oct, 2019 04:14:45 Top
Andrei Smolin


Add-in Express team


Posts: 18823
Joined: 2006-05-11
Hello Alvin,

Get MAPIFolder.FolderPath (or Folder.FolderPath) and parse it.


Andrei Smolin
Add-in Express Team Leader
Posted 25 Oct, 2019 04:58:51 Top
alvin chan




Posts: 34
Joined: 2019-10-07
Hi andrei

This only get the path ,but how do I kw the folder belongs to which level ,any example ?
Posted 25 Oct, 2019 05:03:51 Top
Andrei Smolin


Add-in Express team


Posts: 18823
Joined: 2006-05-11
No example exists. The folder path lists the folders: the first folder is on level 0, the second on level 1, etc.


Andrei Smolin
Add-in Express Team Leader
Posted 25 Oct, 2019 05:12:13 Top