I am trying to do a dme call to find all the workunits for a set of AU's for a specific requester code. I query and store the AU's in an array call vRQAcctStr (tried storing as a string with commas separating the codes but that didn't work). I want my criteria in my workunit DME call to select all WF-STATUS = 2, SERVICE='Inv Approval' and WORK-CAT-VALUE is in my array.
Right now, after I store the AU's in the array, I am creating the obj.criteria with the following value:
dmeObj.criteria = "SELECT=WF-STATUS^%3D2%26SERVICE^%3DInv+Approval%26WORK-CAT-VALUE^%7E" + vRQAcctStr;
This returns zero rows. I have confirmed that there are workunits with at least one AU in my array.
Can anyone tell me if this will work and what I am doing wrong?
Thank you.
The field WORK-CAT-VAL is not in an index. I'm not sure I understand what you are saying.