Connect with us and enhance your M-Files experience using Extension Kit for M-Files. Here’s how to get started.
When creating a task object with Object Creation I want to set the responsible for the task based on a search of the employee having that role (the role is a valuelist).
I have tried to set the responsible with "Specify" and searched for the specific employee that have a specific role but I cant get it to work.
Is this possible to do?
Hi @svedok,
could you please send a screenshot of your configuration rule or JSON so we can investigate the case?
Kind regards,
Nika
Hi @svedok,
while waiting for your configuration, I attempted to replicate the described case to identify the root cause of the issue. I’m sharing my conclusions with you to help speed up the process if you’re in a hurry.
If you’re searching for an employee whose role matches any value from the object you’re currently creating via Object Operations, this won’t be possible, as the object does not exist yet. For example, searching for an employee where the role equals the name of the task is not possible because task hasn’t been created yet.
As a workaround, I suggest creating the Task object first and then configuring another rule in Property Operations module that triggers when the Task object is created. In that way, you’ll be able to set up the property value to the specific person responsible for the newly created task.
I hope this helps! If you need further assistance or a JSON example, feel free to reach out.
Best regards,
Nika
I misunderstood the setting, the search was only related to the triggering object.
I found a workaround using property calculator to search the employee object and set the property for the responsible for the task.
I’m glad to hear you found the solution! If anything else comes up, feel free to reach out.
So, you came to the end of the page. This means you are passionate about technology as we are.
WATCH THE WEBINAR