We've updated the ServiceNow Community Code of Conduct, adding guidelines around AI usage, professionalism, and content violations. Read more

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

@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

Hi @Ankur Bawiskar ,

i have tried show related filed HR case and HR service its not worked . when to script it worked .

@SIVAMANIKR 

Glad to know that script I shared worked for you.

Keep that only then and don't use condition.

💡 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

Siddhesh Jadhav
Kilo Sage

Hi @SIVAMANIKR ,

 

dot walk like this
Parent=> Task Fields - HR Case=> HR Case Fields - HR Service is New Hire Onboarding

SiddheshJadhav_0-1764743774299.png

 

SiddheshJadhav_1-1764743877531.png

Thanks & regards,
Siddhesh Jadhav

 

Please mark this answer helpful and accepted if it resolved your query.



 

HI @Siddhesh Jadhav .

I have dot walked like that but its not working. 

can you please share the screenshot?