Page 1 of 1

Assign a user to a department by using a trigger

Posted: Thu May 06, 2021 9:08 am
by Kamil123
Hello everyone,
I'm creating users within my process then I assign the created users to a Group by using PMFAssignUserToGroup() function.

My question is, Is there a way to assign a user to a Department by using a trigger? is there a function similar to the function that used to assign a user to a group?
If the answer is no, What is the other way to do so?

Re: Assign a user to a department by using a trigger

Posted: Sat May 08, 2021 8:08 am
by Kamil123
I found the solution, I used a simple SQL query to assign User t a new department:
Code: Select all
	@@update_Dep_Manager = executeQuery("UPDATE USERS SET DEP_UID ='225912909608a96cfd661e3083660079' WHERE USR_UID ='$USR_uid'");