Restrict SCTASK to be visible by only members within that specific group task is routed to.

davibow
Tera Contributor

I have a question that maybe someone could help me answer. I am trying to create another business rule that restrict access to catalog tasks of a certain catalog item. The RITM is restrict to members of the network group (this is the business rule that I will be showing you below), however the associate catalog tasks to fulfill the RITM may be routed to other members in other groups. I am trying to modify this code or create something similar that will restrict the visibility of the catalog task to only be view by members of the group, in which the tasks is routed to. Any thoughts? 

Snag_aac0045.png

 

 

4 REPLIES 4

BharathChintala
Mega Sage

@davibow 

 

Write Before query on sc_task table

BharathChintala_0-1680113607913.pngBharathChintala_1-1680113795763.png

(function executeRule(current, previous /*null when async*/) {

    current.addEncodedQuery('assignment_groupDYNAMICd6435e965f510100a9ad2572f2b47744');

})(current, previous);
If my inputs have helped with your question, please mark my answer as accepted solution, and give a thumb up.
Bharath Chintala

davibow
Tera Contributor

What will this query do. It will restrict the catalog tasks to the proper assignment group for all tasks asscociated with the catalog item RITM?

@davibow 

Yes tasks will be only avaialble to assignment group people omly for all items.

 

 

If you want to do this for only one item read ACL is best option

If my inputs have helped with your question, please mark my answer as accepted solution, and give a thumb up.
Bharath Chintala

davibow
Tera Contributor

Sorry, that didn't work. I'll try to trouble shoot it some more. Thanks!