Hide custum task for affected users
A customer have a custom task implemented for service requests. They would like to hide the task if a service request is opened as an affected user.
I have the code to hide a task for analysts, can I use this code and replace session.user.Analyst ?
Thanks
Martin
Best Answer
-
Jeff_Lang Customer Ninja IT Monkey ✭✭✭✭to check if the current user is also the affected user on a service request you can use the below
if ( pageForm.viewModel.RequestedWorkItem.BaseId == session.user.Id ) {<br> //run code in here if they are the same<br>}<br>
5
Answers
Many Thanks!
Do you know where I could find documentation on viewModel ?
Br
Martin
https://community.cireson.com/discussion/3559/documentation-for-viewmodel, Thank you again !
Is there a way to hide a custom task from everyone, other than a specific support group or multiple support groups.