VBScript: automatic property based on source outlook folder

Hi guys,

I want to write some VBScript to calculate the value of a given property. The value should consist of a string (say, "xyz_") and the object ID (say, "1354"), thus resulting in "xyz_1354".

So far, so easy. Here comes the tricky bit: I want to use a different string depending on the M-Files Outlook folder that was used to create the respective object. I want to to do this because in a next step I want to create various views for my users that correspond to the various M-Files outlook folders.

In other words, to be more concrete:

If a given user drags & drops an email in Outlook to M-Files folder X, I want the value of the property to be "xyz_" + ObjID.

If the user drags & drops an email in Outlook to M-Files folder Y, I want the value of the property to be "abc_" + ObjID etc.

I would need an if-function, obviously.

My questions are this:

- is it possible to get the information of the source outlook folder that was used for creating the object?

- if so, how to access it?