Filter while getting submissions in workflow [UNQORK]

How to pass filter value dynamically in plugin to get Dashboard submission?

submissionIdnameclassfeesPaidgender
021efrgggiBinny4yesfemale
22ercfffseVijay4nomale
23ertvttwwRaj4yesmale
24qeqeeqerVinii4nofemale
student

Let’s consider the above submissions are save in workflow submission, we need to get values whose feesPaid is yes and gender is female.

there are many ways to do it .

Solution 1: lets create calculator calcGetFilter , hidden fields filter and
plugin plugFetchValues to fetch dashboard submissions.

lets assign values to filter in calcGetFilter as {“$and”:[{“data.feesPaid”:{“$eq”:”yes”}},{“data.gender”:{“$ne”:’male’}}

now in plugFetchValues in input take propertyId as filter (hidden name) and filter in mapping /


Posted

in

by

Tags: