Page 1 of 1

Call PM function in Plugin php files

Posted: Sat Jun 15, 2019 9:06 am
by njhajhajha
Hey,
I am using Process maker 3.3.3 community version.
I have created plugin in ubuntu for case list.
how can i call PM function in that .php file of plugin.

Thanks
Nivedita

Re: Call PM function in Plugin php files

Posted: Mon Jun 17, 2019 6:08 pm
by amosbatto
In you plugin file, add the following code:
Code: Select all
\G::loadClass("pmFunctions");
//then you can call ProcessMaker functions. For example:
$aUsers = executeQuery("SELECT * FROM USERS");