Hi all, similar to a previous query of mine,
https://community.m-files.com/forums-1552881334/f/best-practices/6622/how-to-find-properties-off-contact-object
I need to use workflow pre-condition script to check if the user creating an object belongs to a particular Company
However, when I do something like this:
Dim oInitiator : oInitiator = PropertyValues.SearchForProperty(25).TypedValue.GetValueAsLookup.Item ' Property 25 = Created By user
Err.Raise MFScriptCancel, "oInitiator: " & oInitiator
It returns the User Account, rather than the actual Contact Object. And the User Accounts don't link to Companies, it's the object contacts which do that.
Contact Objects do link to their User Accounts with an 'M-Files User' property
So, is there a way to get the details and relationships of the Contact object from the User Account?
Many thanks