You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Here is an example of how to bulk approve a number of pending requests using a separate process. This demonstrates data sources, screen builder's loop control, API and the SDK.
Note that this relies on these 2 PRs to be merged:
At the time of writing, importing and exporting data sources is not supported. It must be manually added with the steps below.
Install package-data-sources
Generate a token for admin user
Create a new data source. Set auth to 'bearer token' and set the token from above.
Add a new list endpoint GET: http://pm.local.processmaker.com/api/1.0/tasks?&include=data&pmql=(request%20%3D%20%22Application%22)%20AND%20(task%20%3D%20%22Approval%22)%20AND%20(status%20%3D%20%22In%20Progress%22)
Replace http://pm.local.processmaker.com above with your PM4 server.
Import these 2 processes from the below zip file. Assignments can be left as defaults except the script task in the Bulk Approval process must be set to the Admin user.