How to retrieve employees linked to specific Createdby value?

Hello everyone,

My safe has "Employees" items. Each employee has metadata such as “User M-Files” and “manager” (employee list).

I would like to filter (in a view) the objects created by employees whose current user is the manager.

How to do this ?

Should I write a script? If yes, I understand that I need to retrieve the "created by" value of the current object (ok) then browse the "employees" to find the one which has this value like "USer M-Files": how to browse objects and of a certain type?
(in vbscript)

THANK YOU

Parents
  • Could you not set up a sub-view, or change the filter on the view, to restrict items where "Manager.M-Files User" is equal to "(current user)"?

  • Hi Craig,

    Thanks for your help.

    According to my tests, the "manager.created by" filter allows me to see objects that have a manager that the "current user" created.

    In addition, my objects to search do not have a manager (they were simply "created by" a user-M-Files) and therefore this filter does not return any results for this type of objects/documents.

Reply
  • Hi Craig,

    Thanks for your help.

    According to my tests, the "manager.created by" filter allows me to see objects that have a manager that the "current user" created.

    In addition, my objects to search do not have a manager (they were simply "created by" a user-M-Files) and therefore this filter does not return any results for this type of objects/documents.

Children