HR Life cycle event activity set advanced trigger
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
Hi All,
I am using advanced script to check if last day of is today is true trigger activity set. I have checked script with adding logs I am unable to get last day of work, I can see parent HR case. Last day of work updated with todays date.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago - last edited 3 weeks ago
Hi @SaiVikasR ,
- Is the last day work field on parent HR case or HR task ?
- One more thing "u_lastdayofwork" field should be Data/Time field ideally but in your code
var lastDay = new GlideDate(); - this may be cause.
- Also check seems Advance script executed before field value('u_lastdayofwork) update in HR case .
Please mark helpful & correct answer if it's worthy for you.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
Hi @SaiVikasR
Can you try this . Post testing ,remove gs log.
Regards
Tanushree Maiti
ServiceNow Technical Architect
LinkedIn: https://www.linkedin.com/in/tanushreemaiti