If a IT guy select a field this should does not go to approval

harsha vv
Tera Contributor

If a IT guy select a field in catalog item  this should does not go to approval another than IT guy any other roles select the field it should go to manager approval in workflow can you tell me the code

9 REPLIES 9

Like this:

 

LearnNGrowAtul_0-1702302140190.png

https://www.servicenow.com/community/itom-forum/finding-user-roles-in-workflows/m-p/949970

 

or 

https://www.servicenow.com/community/developer-forum/check-if-users-is-having-role-in-workflow-if-ac...

https://www.servicenow.com/community/developer-forum/best-way-to-check-if-specific-user-has-a-role-i...

https://www.servicenow.com/community/developer-forum/how-to-check-for-role-using-g-user-hasrole-in-c...

 

*************************************************************************************************************
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]

****************************************************************************************************************

And also I need to mention the field. I will repeat the question again: If a person having IT role and if he clicks on a project field the whole catalog don't need  approval. and if a person does not have IT role and if he clicks on the same project field the whole catalog should go to manager approval. can u please tell me 

harshavv_0-1702310017508.png

 

Hi @harsha vv 

 

Yes , as i said it is do able. The above links explain that how to check the user role in Work flow script and take action. Please go through the link and share the feedback. 

*************************************************************************************************************
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]

****************************************************************************************************************

Aniket Chavan
Tera Sage
Tera Sage

Hello @harsha vv 

Can you specify what did you mean by IT guy, like is it a role or group, so likewise you can achieve this by using flow or Workflow by using if and else conditions.

Let me know if you have any further questions.

Please mark my answer helpful and correct if I have answered your question.

Thanks & Regards,
Aniket.

harsha vv
Tera Contributor

yeah right IT role and I want this in workflow and not in flowdesigner