- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-23-2023 02:20 AM
Hi ,
I have created a catalog item and it is collecting information in 2 sections like 1st section for banking and it has 4 variables like account no , user id etc , 2nd section related to general information and it has variables like address etc .
Once the catalog item is submitted it creates a request . Now the requirement is as soon as the request is submitted it should go for approval for 2 different groups (banking and general) and banking group should be able to see only the information of 1 st section i.e banking rest information should not be visible to them (i.e general info should be hidden from them).And , if both groups approve it then flow should proceed and if anyone rejects flow should end Is it possible to achieve this if yes how ?
Thanks for help in advance.
Regards,
Jaya
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-29-2023 10:15 PM
Hi @Jaya9 ,
Since the approval groups are not the part of catalog item form, so its bit difficult to achieve this via a UI Policy.
You can achieve this by the client script by implementing below Pseudo code:
If( LoggedInUser is member of Banking Approval Group)
{
Set Section Display to false for section 2(i.e. General Info)
}
Else If(LoggedInUser is member of Banking Approval Group)
{
Set Section Display to false for section 1(i.e. Banking)
}
Thanks and Regards,
Rahul
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-23-2023 02:38 AM
HI @Jaya9
Till approval it is good, but I doubt we have any action to hide the information. Or what you can do create a UI policy / client script to hide these values basis on different role or member of group.
like
If group = Banking
Variable visible false.
I am not coder , but I guess this way you can do.
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.
Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]
****************************************************************************************************************
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-29-2023 10:15 PM
Hi @Jaya9 ,
Since the approval groups are not the part of catalog item form, so its bit difficult to achieve this via a UI Policy.
You can achieve this by the client script by implementing below Pseudo code:
If( LoggedInUser is member of Banking Approval Group)
{
Set Section Display to false for section 2(i.e. General Info)
}
Else If(LoggedInUser is member of Banking Approval Group)
{
Set Section Display to false for section 1(i.e. Banking)
}
Thanks and Regards,
Rahul