TAG Filter on work queue

Vimal25

Member
Hi All,

As we know , we can apply tag filter with work queue items and retrive only specific items based on tag filter But I have one query.

TAG Filter : "+TAG1;-TAG2;+TAG3;+TAG4"

With above tag filter we can retrive items with specific tag(tag1) and (tag3) and (tag4) and not retrieve (Tag2) based items But can "UNTAG" items will also return or not ?

Second Case: TAG filter :"-TAG1" , It will retrive all items without tag name (TAG1) , Can untag items will also return or not ??



Regardss
Vimal
 
Last edited:

VJR

Well-Known Member
Hi Vimal25,

Scenario 1: "+TAG1;-TAG2;+TAG3;+TAG4"
This will not match the blank (untagged) rows.
This is because Blue Prism treats these as "AND" condition and not "OR" condition.
So for eg if BP is trying to get the rows that match the first condition of TAG1 ,then a row with blank tag will not match this filter and will not return that row because it is not TAG1.

In fact such multiple conditions in the tag are used when there are multiple tags in the same tag field.

For eg; If there are 4 rows in the Work Queue with the below tags in the Tag field of that row-

1. Work Type: Full Time; Age: 35; Country: United States
2. Work Type: Part Time; Age: 35; Country: United Kingdom
3. Work Type: Full Time; Age: 45; Country: Canada
4. Work Type: Full Time; Age: 40; Country: United Arab Emirates

Then if the Tag filter is “Work Type: Full Time; -Age: 40; Country: *United*”
If no symbol is given then it is treated as a "+".
Only row #1 will be returned. The blue colored are all the conditions that match and the red ones do not match the filter and hence will be excluded.

This is just for example purposes. You should never add a tag like age or phone number which varies largely for each row.

Scenario 2: "-TAG1"
This will return all rows that are not TAG1 including the blank untagged rows.
 

Christian

New Member
Hi VJ !

But what if I only want to return untagged items ? I tried "+" and "+ ", but it doesn't work.
Please guide.
 

Vimal25

Member
Dear Chiristian,

@VJR suggestion is absolutly correct.

First you would analyze , which tags you have used in work queue so prepare list them and always use "-" Prefix with Tags .
It will automatically return only untag items.

Regards
Vimal
 

Christian

New Member
Hi,

yes, I understand that I can do "-TAG1; -TAG2...", but then I have to know in advance all the different tags I will use.
But now I want to work on ONLY those items that are untagged.
Of course I can use a dummy-tag instead of null, and filter on this dummy-tag, but is there no other way ?

Best Regards
Christian
 

VJR

Well-Known Member
Hi Christian,

You will be knowing the tags in advance because it is you who will be configuring each of the tags in the 'Tag Item' action. So may be you can store all of these tags in a Text Data Item before starting the process as "-TAG1; -TAG2..." and then use this Data Item in the 'Get Next Item' whenever you want to retrieve all items that are not tagged.

Another option is like you said you can set a new tag as "UNTAGGED" and fetch only these items.

We are serving the main purpose of the tag feature by the above options, but if your question is pertaining to something different then you could elaborate the exact details of the process flow you are designing.
 

RPA_1

Member
Hi VJR,
on your previous response to the below I have a query.

Scenario 1: "+TAG1;-TAG2;+TAG3;+TAG4"
This will not match the blank (untagged) rows.
This is because Blue Prism treats these as "AND" condition and not "OR" condition.

Is there a way we can filter tag based on OR criteria . for e.g. based on the criteria for tag given as "+1,+2,+3,+4" only the cases having priority 1 OR 2 OR 3 OR 4 should be picked from Q and not the case having "+1,+2,+3,+4" as the value in tag.?
 

sivagelli

Well-Known Member
e.g. based on the criteria for tag given as "+1,+2,+3,+4" only the cases having priority 1 OR 2 OR 3 OR 4 should be picked from Q and not the case having "+1,+2,+3,+4" as the value in tag.?
According to BP documentation, tag filters are concatenated with AND.
Also, if you are fine with 1or2or3or4, you may ignore the tag filter, provided 1,2,3,4 are the tags.
 

NKapoor

New Member
I have to pull only work Q items where there is no Tag. I have tried "", " " in "get Next item" as Tag filter but nothing is working, Please assist
 

Dhwani24

New Member
@VJR Is it compulsory to collect all tags assigned before we want to pull completed jobs with tags? I have list of 100 tags which could be assigned so it is difficult to add all 100 tags into tag filter. Is there a better solution for this?
 
Top