when Inside Blackout Window record inserted trigger a approval notification

Dileep Raju
Giga Guru

For change Record, Trigger a approval notification when Inside Blackout Window record inserted in normal change record
For example
we have two approval notifications "A" and "B".
"A" approval notification should trigger when Inside Blackout Window record inserted in Normal change record and "B" notification should trigger when Inside Blackout Window record not inserted in Normal change record.

3 ACCEPTED SOLUTIONS

Hi @Dr Atul G- LNG 
Thank you for quick reply
FYI = "A" Group approval is first level and "B" is second level Approval
Note=
while we approve "A" Group first level approval to "B" group is second level Approval....No fields are changing in change record...
Could you help me with screenshot to trigger a event in workflow

View solution in original post

Hi @Dileep Raju 

 

By mistake you accepted your answer as solution, could you please accept mine too , you can select more than 1 answer as solution. 

 

while we approve "A" Group first level approval to "B" group is second level Approval....No fields are changing in change record...

In flow designer you can use the ask for approval or best is Change Approval Policy. where you design the same. 

 

Please check OOTB polices. 

 

LearnNGrowAtul_0-1705411145099.png

 

LearnNGrowAtul_1-1705411158126.png

 

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

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

View solution in original post

Hi @Dr Atul G- LNG 
For my requirement

Could you please help me with example and screen shot how to achieve this requirement
1. A" approval notification should trigger to Group "A" when Inside Blackout Window record inserted in Normal change record 


2. "B" notification should trigger Group "B" Approval. when Inside Blackout Window record not inserted in Normal change record.



Ans = I used Workflow Activity To trigger email 

 

1. Notification on approval table in advanced condition for "A" Group 1st level Approval given below code
answer = false;
var str = current.wf_activity.name + ' ';
if (str == ' Group "A" ') {
answer = true;
}

 

and for

2.  Notification on approval table in advanced condition for "B" Group 1st level Approval given below code

answer = true;
var str = current.wf_activity.name + ' ';
if (str == ' Group "A" ') {
answer = false;
}

 

View solution in original post

8 REPLIES 8

Dr Atul G- LNG
Tera Patron
Tera Patron

Hi @Dileep Raju 

 

This is not straight forward, bcz in this case, you need to check the change under conflict and see if change has black out window then trigger extra approval. 

Like

1st check is change has conflict status = Conflict If Yes

Then go to 

LearnNGrowAtul_0-1705076385058.png

 and check if this has schedule has blackout window ( It can be more than 1)

and add approval.

 

 

 

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

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

Hi @Dr Atul G- LNG 
Thank you for quick reply
Could you please help me with example and screen shot how to achieve this requirement
1. A" approval notification should trigger to Group "A" when Inside Blackout Window record inserted in Normal change record 


2. "B" notification should trigger Group "B" Approval. when Inside Blackout Window record not inserted in Normal change record.



Hi @Dileep Raju 

What i mentioned above is the process, for this you need to put above check conditions in approval policy and trigger it.

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

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

Hi @Dr Atul G- LNG 
I am unable to do it. Could you please help with Screen shot.