Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

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.

4 REPLIES 4

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 

Siddhesh Jadhav
Kilo Sage
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.