Email notification HR task parent of hr service

SIVAMANIKR
Tera Contributor

Hi All,

we have a one requirement notification need to trigger based on below condition 

SIVAMANIKR_0-1764739275221.png

Table : sn_hr_core_task

Active = true

Assigned to = empty

Assignment group changes

Priority = Critical or High

Task type = Internal
we need to dot walk parent hr service is "document enquiry" ---> Dot walk on hr case is not allowing and notification not triggering.

1 ACCEPTED SOLUTION

Ankur Bawiskar
Tera Patron
Tera Patron

@SIVAMANIKR 

add the logic in Advanced condition, ensure you give correct name of HR service

if (current.parent.hr_service.name == 'document enquiry')
    answer = true;
else
    answer = false;

AnkurBawiskar_0-1764743884747.png

 

💡 If my response helped, please mark it as correct and close the thread 🔒— this helps future readers find the solution faster! 🙏

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

View solution in original post

9 REPLIES 9

Ankur Bawiskar
Tera Patron
Tera Patron

@SIVAMANIKR 

add the logic in Advanced condition, ensure you give correct name of HR service

if (current.parent.hr_service.name == 'document enquiry')
    answer = true;
else
    answer = false;

AnkurBawiskar_0-1764743884747.png

 

💡 If my response helped, please mark it as correct and close the thread 🔒— this helps future readers find the solution faster! 🙏

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

Hi @Ankur Bawiskar 

 

With out script is this possible using condition 

@SIVAMANIKR 

yes it's possible using Show Related Fields

AnkurBawiskar_1-1764745692265.png

 

 

AnkurBawiskar_0-1764745658409.png

 

💡 If my response helped, please mark it as correct and close the thread 🔒— this helps future readers find the solution faster! 🙏

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

@SIVAMANIKR 

Try the Dot walked condition I shared below

If that doesn't work then you can use script I shared

💡 If my response helped, please mark it as correct and close the thread 🔒— this helps future readers find the solution faster! 🙏

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader